summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-12-01 10:50:48 +0300
committermonsta <[email protected]>2015-12-01 10:50:48 +0300
commit9441ca8834e87afa958f8160cb8cb292faaaf321 (patch)
tree1b547f50bc5c74d843e9903c5bd1484bdce4d370 /libslab
parent49f9d88dfec9155bbfc62dc6c6bdc7073f94c16a (diff)
parentc0a4fef81cbad7f0f174f57baffaf14fbc556142 (diff)
downloadmate-control-center-9441ca8834e87afa958f8160cb8cb292faaaf321.tar.bz2
mate-control-center-9441ca8834e87afa958f8160cb8cb292faaaf321.tar.xz
Merge pull request #209 from dnord/patch-1
slab: fix some bottom m-c-c items being not accessible in some cases
Diffstat (limited to 'libslab')
-rw-r--r--libslab/app-resizer.c4
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);
}