[gtk+/wip/otte/queue-resize: 33/33] widget: Make invisible widgets not propagate resizes
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/queue-resize: 33/33] widget: Make invisible widgets not propagate resizes
- Date: Thu, 1 Oct 2015 21:57:17 +0000 (UTC)
commit 025bf8b001ddb224aca66dcb5fa69916a29914d7
Author: Benjamin Otte <otte redhat com>
Date: Thu Oct 1 22:38:31 2015 +0200
widget: Make invisible widgets not propagate resizes
Do not queue a resize on the parent if the widget is not visible.
Invisible widgets do not influence the parents size.
gtk/gtkwidget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f4f1f42..561a025 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5632,7 +5632,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
G_GNUC_END_IGNORE_DEPRECATIONS;
}
- else
+ else if (_gtk_widget_get_visible (widget))
{
GtkWidget *parent = _gtk_widget_get_parent (widget);
if (parent)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]