diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c index 610b2f6239..067aae77c8 100644 --- a/gtk/gtkstack.c +++ b/gtk/gtkstack.c @@ -212,17 +212,6 @@ static gint get_bin_window_y (GtkStack *s G_DEFINE_TYPE_WITH_PRIVATE (GtkStack, gtk_stack, GTK_TYPE_CONTAINER) -static void -gtk_stack_dispose (GObject *obj) -{ - GtkStack *stack = GTK_STACK (obj); - GtkStackPrivate *priv = gtk_stack_get_instance_private (stack); - - priv->visible_child = NULL; - - G_OBJECT_CLASS (gtk_stack_parent_class)->dispose (obj); -} - static void gtk_stack_finalize (GObject *obj) { @@ -416,7 +405,6 @@ gtk_stack_class_init (GtkStackClass *klass) object_class->get_property = gtk_stack_get_property; object_class->set_property = gtk_stack_set_property; - object_class->dispose = gtk_stack_dispose; object_class->finalize = gtk_stack_finalize; widget_class->size_allocate = gtk_stack_size_allocate;