[gtk+] Properly propagate expand flags
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Properly propagate expand flags
- Date: Thu, 21 Oct 2010 09:15:47 +0000 (UTC)
commit 0a3fa74a5235dd2e559bbe659e021feaf326f560
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 20 23:51:57 2010 +0200
Properly propagate expand flags
When showing a widget that already has need_compute_expand set,
we need to queue the recomputation on the parent.
gtk/gtkwidget.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 474f55a..49420c9 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3810,7 +3810,8 @@ gtk_widget_show (GtkWidget *widget)
widget->priv->computed_hexpand ||
widget->priv->computed_vexpand)
{
- gtk_widget_queue_compute_expand (widget);
+ if (widget->priv->parent != NULL)
+ gtk_widget_queue_compute_expand (widget->priv->parent);
}
g_signal_emit (widget, widget_signals[SHOW], 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]