[gtk+] GtkStack: Don't emit notify::visible-child during destruction
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkStack: Don't emit notify::visible-child during destruction
- Date: Thu, 7 May 2015 13:19:07 +0000 (UTC)
commit 39e7afecb1ee882232e887e1b3e4c30ae0afe3a3
Author: Debarshi Ray <debarshir gnome org>
Date: Wed May 6 15:19:55 2015 +0200
GtkStack: Don't emit notify::visible-child during destruction
https://bugzilla.gnome.org/show_bug.cgi?id=749012
gtk/gtkstack.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 652b856..302c65e 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -206,6 +206,17 @@ gtk_stack_init (GtkStack *stack)
}
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)
{
GtkStack *stack = GTK_STACK (obj);
@@ -375,6 +386,7 @@ 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]