From c55634deafe0ee63e2f6be2b4b7bc6e946261c61 Mon Sep 17 00:00:00 2001 From: John Sullivan Date: Tue, 29 Aug 2000 19:41:39 +0000 Subject: Fixed bug 2182 (right-clicking on zoom control changes zoom level) * src/nautilus-zoom-control.c: (nautilus_zoom_control_button_press_event): Made the zoom control use Ramiro's nifty nautilus_pop_up_context_menu code to offset the menu position slightly. --- src/nautilus-zoom-control.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/nautilus-zoom-control.c') diff --git a/src/nautilus-zoom-control.c b/src/nautilus-zoom-control.c index 4b35401d3..befa8e188 100644 --- a/src/nautilus-zoom-control.c +++ b/src/nautilus-zoom-control.c @@ -535,7 +535,10 @@ nautilus_zoom_control_button_press_event (GtkWidget *widget, GdkEventButton *eve gtk_object_ref (GTK_OBJECT (zoom_menu)); gtk_object_sink (GTK_OBJECT (zoom_menu)); - gtk_menu_popup (zoom_menu, NULL, NULL, NULL, NULL, 3, GDK_CURRENT_TIME); + nautilus_pop_up_context_menu (zoom_menu, + NAUTILUS_DEFAULT_POPUP_MENU_DISPLACEMENT, + NAUTILUS_DEFAULT_POPUP_MENU_DISPLACEMENT, + CONTEXTUAL_MENU_BUTTON); gtk_object_unref (GTK_OBJECT (zoom_menu)); return TRUE; } -- cgit v1.2.1