summaryrefslogtreecommitdiff
path: root/gtk/gtksizegroup.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-11-04 23:43:37 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-11-04 23:43:37 +0000
commit37c87ccde423742345de060b3bf4a3f69f91200a (patch)
tree62d41d17bc47f6b09576bf3adc8a58cbfd08eb20 /gtk/gtksizegroup.c
parent21457ced17e61cf260e83a64152fe4573a2883da (diff)
downloadgtk+-37c87ccde423742345de060b3bf4a3f69f91200a.tar.gz
queue_resize_on_group with both the old and new mode, not just the new
Sun Nov 4 18:39:43 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtksizegroup.c (gtk_size_group_set_mode): queue_resize_on_group with both the old and new mode, not just the new mode. (#60171, Nicolas Setton). Also, notify the "mode" property.
Diffstat (limited to 'gtk/gtksizegroup.c')
-rw-r--r--gtk/gtksizegroup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index 2ceca3c4d8..e0f28b020a 100644
--- a/gtk/gtksizegroup.c
+++ b/gtk/gtksizegroup.c
@@ -358,8 +358,13 @@ gtk_size_group_set_mode (GtkSizeGroup *size_group,
if (size_group->mode != mode)
{
+ if (size_group->mode != GTK_SIZE_GROUP_NONE)
+ queue_resize_on_group (size_group);
size_group->mode = mode;
- queue_resize_on_group (size_group);
+ if (size_group->mode != GTK_SIZE_GROUP_NONE)
+ queue_resize_on_group (size_group);
+
+ g_object_notify (G_OBJECT (size_group), "mode");
}
}