[gtk+/wip/baedert/drawing: 35/66] 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: 35/66] paned: Remove useless queue_resize calls
- Date: Thu, 15 Jun 2017 19:55:53 +0000 (UTC)
commit b7a2b99744b39f0a3842be2870fbb4c0f02f252b
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]