Properly propagate expand flags

When showing a widget that already has need_compute_expand set,
we need to queue the recomputation on the parent.
This commit is contained in:
Matthias Clasen 2010-10-20 23:51:57 +02:00
parent c7e1f567b6
commit 0a3fa74a52

View File

@ -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);