summaryrefslogtreecommitdiff
path: root/gtk/gtksizegroup.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-09-15 22:10:26 +0200
committerBenjamin Otte <otte@redhat.com>2015-10-28 19:44:27 +0100
commit8fea3b02c93c5243e7cb7f352b0ae9e2b6d2414f (patch)
treeead5cd91e06de741f343755f73fcddc04d6567e4 /gtk/gtksizegroup.c
parente19818359a422310f6a58c9ec4df1caf9c44f33a (diff)
downloadgtk+-8fea3b02c93c5243e7cb7f352b0ae9e2b6d2414f.tar.gz
sizegroup: refactor
The code looks a lot less dangerous if it doesn't look like we're casting a random widget to a container.
Diffstat (limited to 'gtk/gtksizegroup.c')
-rw-r--r--gtk/gtksizegroup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index 8732beb9ea..798b57133e 100644
--- a/gtk/gtksizegroup.c
+++ b/gtk/gtksizegroup.c
@@ -227,15 +227,15 @@ real_queue_resize (GtkWidget *widget)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
if (GTK_IS_RESIZE_CONTAINER (widget))
- break;
+ {
+ gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
+ break;
+ }
G_GNUC_END_IGNORE_DEPRECATIONS;
widget = gtk_widget_get_parent (widget);
}
while (widget);
-
- if (widget)
- gtk_container_queue_resize_handler (GTK_CONTAINER (widget));
}
}