diff options
author | Benjamin Otte <otte@redhat.com> | 2015-03-24 04:45:38 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-10-28 19:44:27 +0100 |
commit | ab2d236d3dafb93ae8d25e415d6e0b9c8a55babc (patch) | |
tree | bdfc072dc89aba8505194776a2bb093068b977d6 /gtk/gtksizegroup.c | |
parent | 5dd2087d19e93e0f99bd7e43bcee42ef3bc833e8 (diff) | |
download | gtk+-ab2d236d3dafb93ae8d25e415d6e0b9c8a55babc.tar.gz |
sizegroup: Remove GtkQueueResizeFlags
They were only used with geometry widgets.
Diffstat (limited to 'gtk/gtksizegroup.c')
-rw-r--r-- | gtk/gtksizegroup.c | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c index 8e1e33f90b..0136c11e49 100644 --- a/gtk/gtksizegroup.c +++ b/gtk/gtksizegroup.c @@ -204,8 +204,7 @@ _gtk_size_group_get_widget_peers (GtkWidget *for_widget, } static void -real_queue_resize (GtkWidget *widget, - GtkQueueResizeFlags flags) +real_queue_resize (GtkWidget *widget) { GtkWidget *container; @@ -219,17 +218,13 @@ real_queue_resize (GtkWidget *widget, if (container) { - if (flags & GTK_QUEUE_RESIZE_INVALIDATE_ONLY) - _gtk_container_resize_invalidate (GTK_CONTAINER (container)); - else - _gtk_container_queue_resize (GTK_CONTAINER (container)); + _gtk_container_queue_resize (GTK_CONTAINER (container)); } } static void -queue_resize_on_widget (GtkWidget *widget, - gboolean check_siblings, - GtkQueueResizeFlags flags) +queue_resize_on_widget (GtkWidget *widget, + gboolean check_siblings) { GHashTable *widgets; GHashTable *groups; @@ -248,7 +243,7 @@ queue_resize_on_widget (GtkWidget *widget, if (widget == parent && !check_siblings) { - real_queue_resize (widget, flags); + real_queue_resize (widget); parent = _gtk_widget_get_parent (parent); continue; } @@ -257,7 +252,7 @@ queue_resize_on_widget (GtkWidget *widget, if (!widget_groups) { if (widget == parent) - real_queue_resize (widget, flags); + real_queue_resize (widget); parent = _gtk_widget_get_parent (parent); continue; @@ -273,14 +268,14 @@ queue_resize_on_widget (GtkWidget *widget, if (current == parent) { if (widget == parent) - real_queue_resize (parent, flags); + real_queue_resize (parent); } else if (current == widget) { g_warning ("A container and its child are part of this SizeGroup"); } else - queue_resize_on_widget (current, FALSE, flags); + queue_resize_on_widget (current, FALSE); } parent = _gtk_widget_get_parent (parent); @@ -291,12 +286,12 @@ queue_resize_on_widget (GtkWidget *widget, } static void -queue_resize_on_group (GtkSizeGroup *size_group) +queue_resize_on_group (GtkSizeGroup *size_group) { GtkSizeGroupPrivate *priv = size_group->priv; if (priv->widgets) - queue_resize_on_widget (priv->widgets->data, TRUE, 0); + queue_resize_on_widget (priv->widgets->data, TRUE); } static void @@ -611,10 +606,9 @@ gtk_size_group_get_widgets (GtkSizeGroup *size_group) * Queue a resize on a widget, and on all other widgets grouped with this widget. **/ void -_gtk_size_group_queue_resize (GtkWidget *widget, - GtkQueueResizeFlags flags) +_gtk_size_group_queue_resize (GtkWidget *widget) { - queue_resize_on_widget (widget, TRUE, flags); + queue_resize_on_widget (widget, TRUE); } typedef struct { |