diff options
author | Benjamin Otte <otte@redhat.com> | 2011-03-26 23:34:45 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-03-27 00:48:26 +0100 |
commit | fafee4e27645f2b9f819444ad8ce6fe1f67182b8 (patch) | |
tree | 0bd4b438e32f6dd9bf4eb2becd64f38d168d2c50 /gtk/gtksizerequest.c | |
parent | af8a6a7abd02c0862be794c33e477ef2128a01ac (diff) | |
download | gtk+-fafee4e27645f2b9f819444ad8ce6fe1f67182b8.tar.gz |
widget: Emit initial style-set signal in the same situations as GTK2
This ensures that widgets that aren't ported and rely on the style-set
signal being emitted work as well as before. They should not rely on
style-set being emitted however.
Note that this function is a no-op if the initial style has been set
already and is very cheap if it has not been set yet. It only becomes
relevant if the resulting style actually gets used.
https://bugzilla.gnome.org/show_bug.cgi?id=639584
Diffstat (limited to 'gtk/gtksizerequest.c')
-rw-r--r-- | gtk/gtksizerequest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtksizerequest.c b/gtk/gtksizerequest.c index adc218713b..4b379cc780 100644 --- a/gtk/gtksizerequest.c +++ b/gtk/gtksizerequest.c @@ -339,6 +339,8 @@ compute_size_for_orientation (GtkWidget *widget, { gint adjusted_min, adjusted_natural, adjusted_for_size = for_size; + gtk_widget_ensure_style (widget); + if (orientation == GTK_SIZE_GROUP_HORIZONTAL) { if (for_size < 0) |