[gtk+] sizegroup: Refactor function
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] sizegroup: Refactor function
- Date: Wed, 28 Oct 2015 18:57:52 +0000 (UTC)
commit 0721d964e462ac399ca888036d009cb3a9ea5256
Author: Benjamin Otte <otte redhat com>
Date: Fri Sep 18 03:41:12 2015 +0200
sizegroup: Refactor function
gtk/gtksizegroup.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index a0167ec..091bcc9 100644
--- a/gtk/gtksizegroup.c
+++ b/gtk/gtksizegroup.c
@@ -242,10 +242,12 @@ queue_resize_on_widget (GtkWidget *widget,
GSList *widget_groups;
GHashTableIter iter;
gpointer current;
+
+ if (widget == parent)
+ real_queue_resize (widget);
if (widget == parent && !check_siblings)
{
- real_queue_resize (widget);
parent = _gtk_widget_get_parent (parent);
continue;
}
@@ -253,9 +255,6 @@ queue_resize_on_widget (GtkWidget *widget,
widget_groups = _gtk_widget_get_sizegroups (parent);
if (!widget_groups)
{
- if (widget == parent)
- real_queue_resize (widget);
-
parent = _gtk_widget_get_parent (parent);
continue;
}
@@ -269,8 +268,7 @@ queue_resize_on_widget (GtkWidget *widget,
{
if (current == parent)
{
- if (widget == parent)
- real_queue_resize (parent);
+ /* do nothing */
}
else if (current == widget)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]