Prevent a crash with hidden, reorderable tabs. (#513230, Mike Massonnet,

2008-02-15  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_stop_reorder): Prevent
        a crash with hidden, reorderable tabs.  (#513230,
        Mike Massonnet, patch by Carlos Garnacho)


svn path=/trunk/; revision=19593
This commit is contained in:
Matthias Clasen 2008-02-16 04:09:15 +00:00 committed by Matthias Clasen
parent 34418c4e8e
commit 3456639c39
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-02-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_stop_reorder): Prevent
a crash with hidden, reorderable tabs. (#513230,
Mike Massonnet, patch by Carlos Garnacho)
2008-02-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_insert_action_group):

View File

@ -2753,7 +2753,7 @@ gtk_notebook_stop_reorder (GtkNotebook *notebook)
else
page = notebook->cur_page;
if (!page)
if (!page || !page->tab_label)
return;
priv->pressed_button = -1;