/* Returns: the first element in the #GList, or NULL if the #GList has no elements  */
GList* g_list_first(GList *list)
/* Returns: the first element in the #GList, or NULL if the #GList has no elements  */
GList* g_list_first(GList *list)
{
  if (list)
    {
      while (list->prev)
        list = list->prev;
    }
  return list;
}