From c0a4fef81cbad7f0f174f57baffaf14fbc556142 Mon Sep 17 00:00:00 2001 From: dnord Date: Sun, 29 Nov 2015 06:05:42 +0300 Subject: Fix This fixes following issue: https://github.com/mate-desktop/mate-control-center/issues/208 --- libslab/app-resizer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libslab/app-resizer.c b/libslab/app-resizer.c index 350b62cf..8c0aead7 100644 --- a/libslab/app-resizer.c +++ b/libslab/app-resizer.c @@ -207,8 +207,6 @@ app_resizer_size_allocate (GtkWidget * widget, GtkAllocation * allocation) gint new_num_cols; gint useable_area; - gtk_widget_get_allocation (child, &widget_allocation); - if (first_time) { /* we are letting the first show be the "natural" size of the child widget so do nothing. */ @@ -216,6 +214,7 @@ app_resizer_size_allocate (GtkWidget * widget, GtkAllocation * allocation) (*GTK_WIDGET_CLASS (app_resizer_parent_class)->size_allocate) (widget, allocation); first_time = FALSE; + gtk_widget_get_allocation (child, &widget_allocation); gtk_layout_set_size (GTK_LAYOUT (resizer), widget_allocation.width, widget_allocation.height); return; @@ -270,6 +269,7 @@ app_resizer_size_allocate (GtkWidget * widget, GtkAllocation * allocation) if (GTK_WIDGET_CLASS (app_resizer_parent_class)->size_allocate) (*GTK_WIDGET_CLASS (app_resizer_parent_class)->size_allocate) (widget, allocation); + gtk_widget_get_allocation (child, &widget_allocation); gtk_layout_set_size (GTK_LAYOUT (resizer), widget_allocation.width, widget_allocation.height); } -- cgit v1.2.1