gtk+ r19594 - in branches/gtk-2-12: . gtk



Author: matthiasc
Date: Sat Feb 16 04:13:00 2008
New Revision: 19594
URL: http://svn.gnome.org/viewvc/gtk+?rev=19594&view=rev

Log:
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)



Modified:
   branches/gtk-2-12/ChangeLog
   branches/gtk-2-12/gtk/gtknotebook.c

Modified: branches/gtk-2-12/gtk/gtknotebook.c
==============================================================================
--- branches/gtk-2-12/gtk/gtknotebook.c	(original)
+++ branches/gtk-2-12/gtk/gtknotebook.c	Sat Feb 16 04:13:00 2008
@@ -2752,7 +2752,7 @@
   else
     page = notebook->cur_page;
 
-  if (!page)
+  if (!page || !page->tab_label)
     return;
 
   priv->pressed_button = -1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]