[nautilus] actions: remove unused UpAccel action



commit 0ec5e09a1ad322b0189a817d6d7436d6e97a825e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Aug 23 12:37:15 2012 +0200

    actions: remove unused UpAccel action

 src/nautilus-actions.h      |    2 --
 src/nautilus-window-menus.c |    5 +----
 src/nautilus-window.c       |    3 ---
 3 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/nautilus-actions.h b/src/nautilus-actions.h
index d642dc0..5d5a6fd 100644
--- a/src/nautilus-actions.h
+++ b/src/nautilus-actions.h
@@ -30,8 +30,6 @@
 #define NAUTILUS_ACTION_RELOAD "Reload"
 #define NAUTILUS_ACTION_BACK "Back"
 #define NAUTILUS_ACTION_UP "Up"
-#define NAUTILUS_ACTION_UP_ACCEL "UpAccel"
-#define NAUTILUS_ACTION_UP_ACCEL "UpAccel"
 #define NAUTILUS_ACTION_FORWARD "Forward"
 #define NAUTILUS_ACTION_SHOW_HIDE_SIDEBAR "Show Hide Sidebar"
 #define NAUTILUS_ACTION_SHOW_HIDE_LOCATION_BAR "Show Hide Location Bar"
diff --git a/src/nautilus-window-menus.c b/src/nautilus-window-menus.c
index 37ab174..b49dac8 100644
--- a/src/nautilus-window-menus.c
+++ b/src/nautilus-window-menus.c
@@ -450,12 +450,9 @@ static const GtkActionEntry main_entries[] = {
                                  N_("Prefere_nces"),               
                                  NULL, N_("Edit Nautilus preferences"),
                                  G_CALLBACK (action_preferences_callback) },
-  /* name, stock id, label */  { "Up", GTK_STOCK_GO_UP, N_("Open _Parent"),
+  /* name, stock id, label */  { NAUTILUS_ACTION_UP, GTK_STOCK_GO_UP, N_("Open _Parent"),
                                  "<alt>Up", N_("Open the parent folder"),
                                  G_CALLBACK (action_up_callback) },
-  /* name, stock id, label */  { "UpAccel", NULL, "UpAccel",
-                                 "", NULL,
-                                 G_CALLBACK (action_up_callback) },
   /* name, stock id */         { "Stop", GTK_STOCK_STOP,
   /* label, accelerator */       N_("_Stop"), NULL,
   /* tooltip */                  N_("Stop loading the current location"),
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 51d559a..8b0c928 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1571,9 +1571,6 @@ nautilus_window_sync_up_button (NautilusWindow *window)
 	action = gtk_action_group_get_action (action_group,
 					      NAUTILUS_ACTION_UP);
 	gtk_action_set_sensitive (action, allowed);
-	action = gtk_action_group_get_action (action_group,
-					      NAUTILUS_ACTION_UP_ACCEL);
-	gtk_action_set_sensitive (action, allowed);
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]