summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-28 20:18:35 +0100
committerStefano Karapetsas <[email protected]>2014-01-28 20:18:35 +0100
commit44f319721f1ad5a1b8b48fe3ef25401e97aa2bdf (patch)
treebac5cb68e24614791745fd2f91830d31b34f1f85 /libslab
parenta3c69729467538e2821f0a27efbf0a8477d35791 (diff)
downloadmate-control-center-44f319721f1ad5a1b8b48fe3ef25401e97aa2bdf.tar.bz2
mate-control-center-44f319721f1ad5a1b8b48fe3ef25401e97aa2bdf.tar.xz
Fix another GtkAllocation usage
Diffstat (limited to 'libslab')
-rw-r--r--libslab/app-shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libslab/app-shell.c b/libslab/app-shell.c
index affaa8aa..7c4f8f13 100644
--- a/libslab/app-shell.c
+++ b/libslab/app-shell.c
@@ -473,7 +473,7 @@ handle_group_clicked (Tile * tile, TileEvent * event, gpointer user_data)
{
AppShellData *app_data = (AppShellData *) user_data;
GtkWidget *section = NULL;
- GtkAllocation *allocation;
+ GtkAllocation allocation;
gint clicked_pos =
GPOINTER_TO_INT (g_object_get_data (G_OBJECT (tile), GROUP_POSITION_NUMBER_KEY));
@@ -495,8 +495,8 @@ handle_group_clicked (Tile * tile, TileEvent * event, gpointer user_data)
if (NULL != cat_data->filtered_launcher_list)
{
- gtk_widget_get_allocation (GTK_WIDGET (cat_data->section), allocation);
- total += allocation->height +
+ gtk_widget_get_allocation (GTK_WIDGET (cat_data->section), &allocation);
+ total += allocation.height +
CATEGORY_SPACING;
}
}