[gimp/wip/animation: 46/182] plug-ins: do not use direct letters as shortcuts.



commit ab9ad1ed453c80bb4dc119c4cbe326b9bf39f5e3
Author: Jehan <jehan girinstud io>
Date:   Thu Apr 7 20:00:14 2016 +0200

    plug-ins: do not use direct letters as shortcuts.
    
    Though it is very practical, it takes precedence when working in text
    widgets. Maybe I'll improve later so that it can work except when in a
    text entry or similar. Until then, use <control> action shortcuts.

 plug-ins/animation-play/widgets/animation-dialog.c |   24 ++++++++++----------
 1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-dialog.c 
b/plug-ins/animation-play/widgets/animation-dialog.c
index 1cef10c..ea1ba62 100755
--- a/plug-ins/animation-play/widgets/animation-dialog.c
+++ b/plug-ins/animation-play/widgets/animation-dialog.c
@@ -884,22 +884,22 @@ ui_manager_new (AnimationDialog *dialog)
   static GtkActionEntry play_entries[] =
   {
     { "step-back", "media-skip-backward",
-      N_("Step _back"), "d", N_("Step back to previous frame"),
+      N_("Step _back"), "<control>Left", N_("Step back to previous frame"),
       G_CALLBACK (step_back_callback) },
 
     { "step", "media-skip-forward",
-      N_("_Step"), "f", N_("Step to next frame"),
+      N_("_Step"), "<control>Right", N_("Step to next frame"),
       G_CALLBACK (step_callback) },
 
     { "rewind", "media-seek-backward",
-      NULL, "s", N_("Rewind the animation"),
+      NULL, "<control>Home", N_("Rewind the animation"),
       G_CALLBACK (rewind_callback) },
   };
 
   static GtkToggleActionEntry play_toggle_entries[] =
   {
     { "play", "media-playback-start",
-      NULL, "space", N_("Start playback"),
+      NULL, "<control>space", N_("Start playback"),
       G_CALLBACK (play_callback), FALSE },
   };
 
@@ -914,12 +914,12 @@ ui_manager_new (AnimationDialog *dialog)
 
     {
       "speed-up", NULL,
-      N_("Faster"), "bracketright", N_("Increase the speed of the animation"),
+      N_("Faster"), "<control>bracketright", N_("Increase the speed of the animation"),
       G_CALLBACK (speed_up_callback)
     },
     {
       "speed-down", NULL,
-      N_("Slower"), "bracketleft", N_("Decrease the speed of the animation"),
+      N_("Slower"), "<control>bracketleft", N_("Decrease the speed of the animation"),
       G_CALLBACK (speed_down_callback)
     },
   };
@@ -927,27 +927,27 @@ ui_manager_new (AnimationDialog *dialog)
   static GtkActionEntry view_entries[] =
   {
     { "zoom-in", GIMP_ICON_ZOOM_IN,
-      NULL, "plus", N_("Zoom in"),
+      NULL, "<control>plus", N_("Zoom in"),
       G_CALLBACK (zoom_in_callback) },
 
     { "zoom-in-accel", GIMP_ICON_ZOOM_IN,
-      NULL, "KP_Add", N_("Zoom in"),
+      NULL, "<control>KP_Add", N_("Zoom in"),
       G_CALLBACK (zoom_in_callback) },
 
     { "zoom-out", GIMP_ICON_ZOOM_OUT,
-      NULL, "minus", N_("Zoom out"),
+      NULL, "<control>minus", N_("Zoom out"),
       G_CALLBACK (zoom_out_callback) },
 
     { "zoom-out-accel", GIMP_ICON_ZOOM_OUT,
-      NULL, "KP_Subtract", N_("Zoom out"),
+      NULL, "<control>KP_Subtract", N_("Zoom out"),
       G_CALLBACK (zoom_out_callback) },
 
     { "zoom-reset", GIMP_ICON_ZOOM_OUT,
-      NULL, "equal", N_("Zoom out"),
+      NULL, "<control>equal", N_("Zoom out"),
       G_CALLBACK (zoom_reset_callback) },
 
     { "zoom-reset-accel", GIMP_ICON_ZOOM_OUT,
-      NULL, "KP_Equal", N_("Zoom out"),
+      NULL, "<control>KP_Equal", N_("Zoom out"),
       G_CALLBACK (zoom_reset_callback) },
   };
 


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