[nautilus] Fix Copy/Cut/Paste action acceks not working



commit 68e9e10f8c604076bb9a20775c2e6e8fef63640b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Aug 24 08:25:41 2013 -0700

    Fix Copy/Cut/Paste action acceks not working
    
    We lost these accels when we migrated away from GtkStock items.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706705

 libnautilus-private/nautilus-clipboard.c |    6 +++---
 src/nautilus-view.c                      |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libnautilus-private/nautilus-clipboard.c b/libnautilus-private/nautilus-clipboard.c
index feb58de..8cb3237 100644
--- a/libnautilus-private/nautilus-clipboard.c
+++ b/libnautilus-private/nautilus-clipboard.c
@@ -355,15 +355,15 @@ target_data_free (TargetCallbackData *target_data)
 
 static const GtkActionEntry clipboard_entries[] = {
   /* name, stock id */      { "Cut", NULL,
-  /* label, accelerator */    N_("Cu_t"), NULL,
+  /* label, accelerator */    N_("Cu_t"), "<control>X",
   /* tooltip */               N_("Cut the selected text to the clipboard"),
                               G_CALLBACK (action_cut_callback) },
   /* name, stock id */      { "Copy", NULL,
-  /* label, accelerator */    N_("_Copy"), NULL,
+  /* label, accelerator */    N_("_Copy"), "<control>C",
   /* tooltip */               N_("Copy the selected text to the clipboard"),
                               G_CALLBACK (action_copy_callback) },
   /* name, stock id */      { "Paste", NULL,
-  /* label, accelerator */    N_("_Paste"), NULL,
+  /* label, accelerator */    N_("_Paste"), "<control>V",
   /* tooltip */               N_("Paste the text stored on the clipboard"),
                               G_CALLBACK (action_paste_callback) },
   /* name, stock id */      { "Select All", NULL,
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 86ebe1d..df6bc42 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -7203,15 +7203,15 @@ static const GtkActionEntry directory_view_entries[] = {
   /* tooltip */                  N_("Delete all items in the Trash"),
                                 G_CALLBACK (action_empty_trash_callback) },
   /* name, stock id */         { NAUTILUS_ACTION_CUT, NULL,
-  /* label, accelerator */       N_("Cu_t"), NULL,
+  /* label, accelerator */       N_("Cu_t"), "<control>X",
   /* tooltip */                  N_("Prepare the selected files to be moved with a Paste command"),
                                 G_CALLBACK (action_cut_files_callback) },
   /* name, stock id */         { NAUTILUS_ACTION_COPY, NULL,
-  /* label, accelerator */       N_("_Copy"), NULL,
+  /* label, accelerator */       N_("_Copy"), "<control>C",
   /* tooltip */                  N_("Prepare the selected files to be copied with a Paste command"),
                                 G_CALLBACK (action_copy_files_callback) },
   /* name, stock id */         { NAUTILUS_ACTION_PASTE, NULL,
-  /* label, accelerator */       N_("_Paste"), NULL,
+  /* label, accelerator */       N_("_Paste"), "<control>V",
   /* tooltip */                  N_("Move or copy files previously selected by a Cut or Copy command"),
                                 G_CALLBACK (action_paste_files_callback) },
   /* We make accelerator "" instead of null here to not inherit the stock


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