summaryrefslogtreecommitdiff
path: root/gtk/gtksizerequest.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-11-13 21:51:29 +0100
committerBenjamin Otte <otte@redhat.com>2012-11-14 01:55:28 +0100
commitc98ee1ec396ccd8cb4c87780ee08adad88fdf3e3 (patch)
tree42bbf6cdf4c743f90c6157b8a82040e85319903c /gtk/gtksizerequest.c
parent4366f80aabea3ba790109bd75517f2339ff6188b (diff)
downloadgtk+-c98ee1ec396ccd8cb4c87780ee08adad88fdf3e3.tar.gz
sizerequestcache: Make clear_cache clear all the cache
Diffstat (limited to 'gtk/gtksizerequest.c')
-rw-r--r--gtk/gtksizerequest.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/gtksizerequest.c b/gtk/gtksizerequest.c
index 51043edb90..eff854f200 100644
--- a/gtk/gtksizerequest.c
+++ b/gtk/gtksizerequest.c
@@ -95,11 +95,9 @@ init_cache (GtkWidget *widget)
cache = _gtk_widget_peek_request_cache (widget);
- if (_gtk_widget_get_width_request_needed (widget))
- _gtk_size_request_cache_clear (cache, GTK_SIZE_GROUP_HORIZONTAL);
-
- if (_gtk_widget_get_height_request_needed (widget))
- _gtk_size_request_cache_clear (cache, GTK_SIZE_GROUP_VERTICAL);
+ if (_gtk_widget_get_width_request_needed (widget) ||
+ _gtk_widget_get_height_request_needed (widget))
+ _gtk_size_request_cache_clear (cache);
return cache;
}