[gtk+/wip/baedert/drawing: 8/73] 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: 8/73] paned: Remove useless queue_resize calls
- Date: Thu, 22 Jun 2017 08:05:59 +0000 (UTC)
commit 73ecf2494689b23a02c4aec7bd5f045ea03d36d9
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 8a9e712..6105867 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1803,27 +1803,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]