[gtk+] GtkStack: Remove redundant code



commit faf22954402f49786ecee43b4b6bef7dbe887388
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Dec 12 21:04:05 2016 +0100

    GtkStack: Remove redundant code
    
    Commit 7ce96cb6ac28eeb62e003dcb9e0a8ce7d48e09e0 avoids notifications
    during destruction by using gtk_widget_in_destruction. Therefore this
    code is no longer needed.
    
    This reverts commit 39e7afecb1ee882232e887e1b3e4c30ae0afe3a3
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749012

 gtk/gtkstack.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 610b2f6..067aae7 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -213,17 +213,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)
 {
   GtkStack *stack = GTK_STACK (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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]