mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-31 16:01:11 +00:00
GtkStack: Don't emit notify::visible-child during destruction
https://bugzilla.gnome.org/show_bug.cgi?id=749012
This commit is contained in:
parent
142c8a5c8d
commit
39e7afecb1
@ -205,6 +205,17 @@ gtk_stack_init (GtkStack *stack)
|
|||||||
gtk_widget_set_redraw_on_allocate ((GtkWidget*) stack, TRUE);
|
gtk_widget_set_redraw_on_allocate ((GtkWidget*) stack, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
static void
|
||||||
gtk_stack_finalize (GObject *obj)
|
gtk_stack_finalize (GObject *obj)
|
||||||
{
|
{
|
||||||
@ -375,6 +386,7 @@ gtk_stack_class_init (GtkStackClass *klass)
|
|||||||
|
|
||||||
object_class->get_property = gtk_stack_get_property;
|
object_class->get_property = gtk_stack_get_property;
|
||||||
object_class->set_property = gtk_stack_set_property;
|
object_class->set_property = gtk_stack_set_property;
|
||||||
|
object_class->dispose = gtk_stack_dispose;
|
||||||
object_class->finalize = gtk_stack_finalize;
|
object_class->finalize = gtk_stack_finalize;
|
||||||
|
|
||||||
widget_class->size_allocate = gtk_stack_size_allocate;
|
widget_class->size_allocate = gtk_stack_size_allocate;
|
||||||
|
Loading…
Reference in New Issue
Block a user