checked in wrong version of gtk_box_reorder_child previously.
-timj
This commit is contained in:
@ -298,7 +298,7 @@ gtk_box_reorder_child (GtkBox *box,
|
|||||||
list = list->next;
|
list = list->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list)
|
if (list && box->children->next)
|
||||||
{
|
{
|
||||||
GList *tmp_list;
|
GList *tmp_list;
|
||||||
|
|
||||||
@ -306,6 +306,8 @@ gtk_box_reorder_child (GtkBox *box,
|
|||||||
list->next->prev = list->prev;
|
list->next->prev = list->prev;
|
||||||
if (list->prev)
|
if (list->prev)
|
||||||
list->prev->next = list->next;
|
list->prev->next = list->next;
|
||||||
|
else
|
||||||
|
box->children = list->next;
|
||||||
|
|
||||||
tmp_list = box->children;
|
tmp_list = box->children;
|
||||||
while (pos && tmp_list->next)
|
while (pos && tmp_list->next)
|
||||||
|
Reference in New Issue
Block a user