[gtk+/wip/baedert/drawing: 209/359] paned: Remove useless queue_resize calls



commit efdee49977d227cdf5a2562f303cfc0ba143cf17
Author: Timm Bäder <mail baedert org>
Date:   Fri May 26 21:00:12 2017 +0200

    paned: Remove useless queue_resize calls
    
    This is done by gtk_widget_unparent nowadays

 gtk/gtkpaned.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index bef6d84..4e9b25d 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1805,27 +1805,18 @@ gtk_paned_remove (GtkContainer *container,
 {
   GtkPaned *paned = GTK_PANED (container);
   GtkPanedPrivate *priv = paned->priv;
-  gboolean was_visible;
-
-  was_visible = gtk_widget_get_visible (widget);
 
   if (priv->child1 == widget)
     {
       gtk_widget_unparent (widget);
 
       priv->child1 = NULL;
-
-      if (was_visible && gtk_widget_get_visible (GTK_WIDGET (container)))
-       gtk_widget_queue_resize_no_redraw (GTK_WIDGET (container));
     }
   else if (priv->child2 == widget)
     {
       gtk_widget_unparent (widget);
 
       priv->child2 = NULL;
-
-      if (was_visible && gtk_widget_get_visible (GTK_WIDGET (container)))
-       gtk_widget_queue_resize_no_redraw (GTK_WIDGET (container));
     }
 }
 


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