diff options
author | dnord <[email protected]> | 2015-11-29 06:05:42 +0300 |
---|---|---|
committer | dnord <[email protected]> | 2015-11-29 06:05:42 +0300 |
commit | c0a4fef81cbad7f0f174f57baffaf14fbc556142 (patch) | |
tree | 1b547f50bc5c74d843e9903c5bd1484bdce4d370 /libslab | |
parent | 49f9d88dfec9155bbfc62dc6c6bdc7073f94c16a (diff) | |
download | mate-control-center-c0a4fef81cbad7f0f174f57baffaf14fbc556142.tar.bz2 mate-control-center-c0a4fef81cbad7f0f174f57baffaf14fbc556142.tar.xz |
Fix
This fixes following issue: https://github.com/mate-desktop/mate-control-center/issues/208
Diffstat (limited to 'libslab')
-rw-r--r-- | libslab/app-resizer.c | 4 |
1 files 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); } |