Added initializer to quiet gcc warning. Added assertion to check for null
Added initializer to quiet gcc warning. Added assertion to check for null pointer deref.
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
Mon Nov 30 12:17:10 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_reorder_child):
|
||||
Added initializer to quiet gcc warning.
|
||||
Added assertion to check for null pointer deref.
|
||||
|
||||
Mon Nov 30 10:11:29 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/testgtkrc: merged testgtkrc with the pre-themes one, removed
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 30 12:17:10 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_reorder_child):
|
||||
Added initializer to quiet gcc warning.
|
||||
Added assertion to check for null pointer deref.
|
||||
|
||||
Mon Nov 30 10:11:29 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/testgtkrc: merged testgtkrc with the pre-themes one, removed
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 30 12:17:10 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_reorder_child):
|
||||
Added initializer to quiet gcc warning.
|
||||
Added assertion to check for null pointer deref.
|
||||
|
||||
Mon Nov 30 10:11:29 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/testgtkrc: merged testgtkrc with the pre-themes one, removed
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 30 12:17:10 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_reorder_child):
|
||||
Added initializer to quiet gcc warning.
|
||||
Added assertion to check for null pointer deref.
|
||||
|
||||
Mon Nov 30 10:11:29 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/testgtkrc: merged testgtkrc with the pre-themes one, removed
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 30 12:17:10 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_reorder_child):
|
||||
Added initializer to quiet gcc warning.
|
||||
Added assertion to check for null pointer deref.
|
||||
|
||||
Mon Nov 30 10:11:29 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/testgtkrc: merged testgtkrc with the pre-themes one, removed
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 30 12:17:10 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_reorder_child):
|
||||
Added initializer to quiet gcc warning.
|
||||
Added assertion to check for null pointer deref.
|
||||
|
||||
Mon Nov 30 10:11:29 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/testgtkrc: merged testgtkrc with the pre-themes one, removed
|
||||
|
@ -1,3 +1,9 @@
|
||||
Mon Nov 30 12:17:10 1998 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_reorder_child):
|
||||
Added initializer to quiet gcc warning.
|
||||
Added assertion to check for null pointer deref.
|
||||
|
||||
Mon Nov 30 10:11:29 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/testgtkrc: merged testgtkrc with the pre-themes one, removed
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user