[gtk+/wip/baedert/drawing: 121/142] paned: Remove useless queue_resize calls



commit 0596bd7ef5612123e0c47ed44529242bda7bea3b
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 7293541..444cabc 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1806,27 +1806,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]