mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
GtkStack: Remove redundant code
Commit7ce96cb6ac
avoids notifications during destruction by using gtk_widget_in_destruction. Therefore this code is no longer needed. This reverts commit39e7afecb1
https://bugzilla.gnome.org/show_bug.cgi?id=749012
This commit is contained in:
parent
76e5fd4d0f
commit
faf2295440
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user