[gtk+/wip/baedert/drawing: 2/102] paned: Remove useless queue_resize calls
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 2/102] paned: Remove useless queue_resize calls
- Date: Thu, 29 Jun 2017 15:38:12 +0000 (UTC)
commit 7c684e255c2a7ba39d3021a9b666addc1b90a177
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]