Don't call gtk_widget_unparent on sheet->button if it's null.
authorBen Pfaff <blp@gnu.org>
Fri, 9 May 2008 00:00:32 +0000 (00:00 +0000)
committerBen Pfaff <blp@gnu.org>
Fri, 9 May 2008 00:00:32 +0000 (00:00 +0000)
lib/gtksheet/ChangeLog
lib/gtksheet/gtksheet.c

index 910c15d9a314f964deea5eb4ab6118f33ee8f789..b5ba1c82cae8030b8f492bccf24aac31475db382 100644 (file)
@@ -1,3 +1,10 @@
+2008-05-08  Ben Pfaff  <blp@gnu.org>
+
+       Patch #6506.  Reviewed by John Darrington.
+
+       * gtksheet.c (gtk_sheet_unrealize): Don't call gtk_widget_unparent
+       on sheet->button if it's null.
+
 2008-05-06  Ben Pfaff  <blp@gnu.org>
 
        * gtksheet.c (gtk_sheet_dispose): Set the sheet's entry_container
index 1f0e83fac72d6651c3e3ef79b19c240c96e00e0a..942b0233117b4641a61b9dadccbec4fed9f51866 100644 (file)
@@ -2725,7 +2725,8 @@ gtk_sheet_unrealize (GtkWidget * widget)
   sheet->bg_gc = NULL;
 
   gtk_widget_unparent (sheet->entry_widget);
-  gtk_widget_unparent (sheet->button);
+  if (sheet->button != NULL)
+    gtk_widget_unparent (sheet->button);
 
   if (GTK_WIDGET_CLASS (parent_class)->unrealize)
     (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget);