diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-28 20:32:47 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-28 20:32:47 +0100 |
commit | a325d926595fcff0677be4f5bd9aa84fb1b0a0a9 (patch) | |
tree | 71000370514314da849d4b37f97fcdee52fd5f03 | |
parent | 44f319721f1ad5a1b8b48fe3ef25401e97aa2bdf (diff) | |
download | mate-control-center-a325d926595fcff0677be4f5bd9aa84fb1b0a0a9.tar.bz2 mate-control-center-a325d926595fcff0677be4f5bd9aa84fb1b0a0a9.tar.xz |
Fix another GtkAllocation usage
-rw-r--r-- | libslab/search-context-picker.c | 10 |
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; |