[nautilus] all: remove offset_x/offset_y parameters from eel_pop_up_context_menu()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] all: remove offset_x/offset_y parameters from eel_pop_up_context_menu()
- Date: Wed, 5 Oct 2011 19:09:54 +0000 (UTC)
commit 428b468e8e6e66270cb434f14e4b1f8d7f5354c9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Oct 5 15:08:05 2011 -0400
all: remove offset_x/offset_y parameters from eel_pop_up_context_menu()
They're unused now.
eel/eel-gtk-extensions.c | 6 ++----
eel/eel-gtk-extensions.h | 3 ---
src/nautilus-places-sidebar.c | 4 +---
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 6b5ad5b..cc8a0f6 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 6b39160..e0ad9b4 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 81aa9ec..66e7b70 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 1f28840..576c8b8 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]