diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtknotebook.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index c7b8284c18..505ab83706 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -4122,7 +4122,7 @@ gtk_notebook_reorder_child (GtkNotebook *notebook, { GList *list; GList *work; - GtkNotebookPage *page; + GtkNotebookPage *page = NULL; gint old_pos; g_return_if_fail (notebook != NULL); @@ -4169,6 +4169,8 @@ gtk_notebook_reorder_child (GtkNotebook *notebook, { GtkWidget *menu_item; + g_assert(page != NULL); + menu_item = page->menu_label->parent; gtk_container_remove (GTK_CONTAINER (menu_item), page->menu_label); gtk_container_remove (GTK_CONTAINER (notebook->menu), menu_item); |