[gtk+/wip/otte/queue-resize: 14/31] sizegroup: refactor
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/queue-resize: 14/31] sizegroup: refactor
- Date: Tue, 29 Sep 2015 21:22:57 +0000 (UTC)
commit e9ec6ba210c561efc218155e629ae445701052ca
Author: Benjamin Otte <otte redhat com>
Date: Tue Sep 15 22:10:26 2015 +0200
sizegroup: refactor
The code looks a lot less dangerous if it doesn't look like we're
casting a random widget to a container.
gtk/gtksizegroup.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index 8732beb..798b571 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));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]