summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-28 20:32:47 +0100
committerStefano Karapetsas <[email protected]>2014-01-28 20:32:47 +0100
commita325d926595fcff0677be4f5bd9aa84fb1b0a0a9 (patch)
tree71000370514314da849d4b37f97fcdee52fd5f03 /libslab
parent44f319721f1ad5a1b8b48fe3ef25401e97aa2bdf (diff)
downloadmate-control-center-a325d926595fcff0677be4f5bd9aa84fb1b0a0a9.tar.bz2
mate-control-center-a325d926595fcff0677be4f5bd9aa84fb1b0a0a9.tar.xz
Fix another GtkAllocation usage
Diffstat (limited to 'libslab')
-rw-r--r--libslab/search-context-picker.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libslab/search-context-picker.c b/libslab/search-context-picker.c
index c19e5b1c..397c98f0 100644
--- a/libslab/search-context-picker.c
+++ b/libslab/search-context-picker.c
@@ -94,18 +94,18 @@ static void
menu_position_func (GtkMenu * menu, int *x, int *y, gboolean * push_in, gpointer picker)
{
GtkWidget *widget = GTK_WIDGET (picker);
- GtkAllocation *allocation;
+ GtkAllocation allocation;
- gtk_widget_get_allocation (widget, allocation);
+ gtk_widget_get_allocation (widget, &allocation);
gdk_window_get_origin (gtk_widget_get_window (widget), x, y);
- *x += allocation->x;
- *y += allocation->y + allocation->height;
+ *x += allocation.x;
+ *y += allocation.y + allocation.height;
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
{
GtkRequisition req;
gtk_widget_size_request (GTK_WIDGET (menu), &req);
- *x += allocation->width - req.width;
+ *x += allocation.width - req.width;
}
*push_in = FALSE;