From ab2d236d3dafb93ae8d25e415d6e0b9c8a55babc Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 24 Mar 2015 04:45:38 +0100 Subject: sizegroup: Remove GtkQueueResizeFlags They were only used with geometry widgets. --- gtk/gtksizegroup.c | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'gtk/gtksizegroup.c') 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 { -- cgit v1.2.1