From a325d926595fcff0677be4f5bd9aa84fb1b0a0a9 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Tue, 28 Jan 2014 20:32:47 +0100 Subject: Fix another GtkAllocation usage --- libslab/search-context-picker.c | 10 +++++----- 1 file 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; -- cgit v1.2.1