]> Pileus Git - ~andy/gtk/commitdiff
checked in wrong version of gtk_box_reorder_child previously.
authorTim Janik <timj@src.gnome.org>
Sun, 18 Jan 1998 04:15:22 +0000 (04:15 +0000)
committerTim Janik <timj@src.gnome.org>
Sun, 18 Jan 1998 04:15:22 +0000 (04:15 +0000)
-timj

gtk/gtkbox.c

index 0339a8dbe76f8711c0325280b44dc43abc575448..b63873ca74acc84d26dc12779999d20d14325dff 100644 (file)
@@ -298,7 +298,7 @@ gtk_box_reorder_child (GtkBox                   *box,
       list = list->next;
     }
 
-  if (list)
+  if (list && box->children->next)
     {
       GList *tmp_list;
 
@@ -306,6 +306,8 @@ gtk_box_reorder_child (GtkBox                   *box,
        list->next->prev = list->prev;
       if (list->prev)
        list->prev->next = list->next;
+      else
+       box->children = list->next;
 
       tmp_list = box->children;
       while (pos && tmp_list->next)