diff options
-rw-r--r-- | eel/eel-gtk-extensions.c | 6 | ||||
-rw-r--r-- | eel/eel-gtk-extensions.h | 3 | ||||
-rw-r--r-- | src/nautilus-places-sidebar.c | 4 | ||||
-rw-r--r-- | src/nautilus-view.c | 6 |
4 files changed, 3 insertions, 16 deletions
diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c index 6b5ad5b9a..cc8a0f63e 100644 --- a/eel/eel-gtk-extensions.c +++ b/eel/eel-gtk-extensions.c @@ -266,10 +266,8 @@ eel_gtk_window_set_initial_geometry_from_string (GtkWindow *window, * In case no event is provided, gtk_get_current_event_time() will be used automatically. **/ void -eel_pop_up_context_menu (GtkMenu *menu, - gint16 offset_x, - gint16 offset_y, - GdkEventButton *event) +eel_pop_up_context_menu (GtkMenu *menu, + GdkEventButton *event) { int button; diff --git a/eel/eel-gtk-extensions.h b/eel/eel-gtk-extensions.h index 6b391605e..e0ad9b4f1 100644 --- a/eel/eel-gtk-extensions.h +++ b/eel/eel-gtk-extensions.h @@ -32,7 +32,6 @@ #include <gtk/gtk.h> #include <eel/eel-gdk-extensions.h> -#define EEL_DEFAULT_POPUP_MENU_DISPLACEMENT 2 #define EEL_STANDARD_CLOSE_WINDOW_CONTROL_KEY 'w' /* GtkWindow */ @@ -52,8 +51,6 @@ char * eel_gtk_window_get_geometry_string (GtkWindow /* GtkMenu and GtkMenuItem */ void eel_pop_up_context_menu (GtkMenu *menu, - gint16 offset_x, - gint16 offset_y, GdkEventButton *event); GtkMenuItem * eel_gtk_menu_append_separator (GtkMenu *menu); GtkMenuItem * eel_gtk_menu_insert_separator (GtkMenu *menu, diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c index 81aa9ec57..66e7b70e3 100644 --- a/src/nautilus-places-sidebar.c +++ b/src/nautilus-places-sidebar.c @@ -2710,9 +2710,7 @@ bookmarks_popup_menu (NautilusPlacesSidebar *sidebar, { bookmarks_update_popup_menu (sidebar); eel_pop_up_context_menu (GTK_MENU(sidebar->popup_menu), - EEL_DEFAULT_POPUP_MENU_DISPLACEMENT, - EEL_DEFAULT_POPUP_MENU_DISPLACEMENT, - event); + event); } /* Callback used for the GtkWidget::popup-menu signal of the shortcuts list */ diff --git a/src/nautilus-view.c b/src/nautilus-view.c index 1f28840a0..576c8b868 100644 --- a/src/nautilus-view.c +++ b/src/nautilus-view.c @@ -8551,8 +8551,6 @@ nautilus_view_pop_up_selection_context_menu (NautilusView *view, eel_pop_up_context_menu (create_popup_menu (view, NAUTILUS_VIEW_POPUP_PATH_SELECTION), - EEL_DEFAULT_POPUP_MENU_DISPLACEMENT, - EEL_DEFAULT_POPUP_MENU_DISPLACEMENT, event); } @@ -8581,8 +8579,6 @@ nautilus_view_pop_up_background_context_menu (NautilusView *view, eel_pop_up_context_menu (create_popup_menu (view, NAUTILUS_VIEW_POPUP_PATH_BACKGROUND), - EEL_DEFAULT_POPUP_MENU_DISPLACEMENT, - EEL_DEFAULT_POPUP_MENU_DISPLACEMENT, event); } @@ -8596,8 +8592,6 @@ real_pop_up_location_context_menu (NautilusView *view) eel_pop_up_context_menu (create_popup_menu (view, NAUTILUS_VIEW_POPUP_PATH_LOCATION), - EEL_DEFAULT_POPUP_MENU_DISPLACEMENT, - EEL_DEFAULT_POPUP_MENU_DISPLACEMENT, view->details->location_popup_event); } |