diff options
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r-- | gtk/gtkcontainer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index ddaee28f14..64b296e6c3 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -1009,7 +1009,7 @@ static void gtk_container_destroy (GtkObject *object) { GtkContainer *container = GTK_CONTAINER (object); - + if (GTK_CONTAINER_RESIZE_PENDING (container)) _gtk_container_dequeue_resize_handler (container); @@ -1018,11 +1018,10 @@ gtk_container_destroy (GtkObject *object) */ if (container->has_focus_chain) gtk_container_unset_focus_chain (container); - + gtk_container_foreach (container, (GtkCallback) gtk_widget_destroy, NULL); - - if (GTK_OBJECT_CLASS (parent_class)->destroy) - (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); + + GTK_OBJECT_CLASS (parent_class)->destroy (object); } static void |