[gedit/wip/3.14-osx: 17/18] [osx] Override accel for win.replace



commit a4ac6ddbf9dac823d96617e35f032fdf70f776e4
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Fri Aug 22 10:27:56 2014 +0200

    [osx] Override accel for win.replace

 gedit/gedit-app-osx.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-app-osx.c b/gedit/gedit-app-osx.c
index 09311da..079a737 100644
--- a/gedit/gedit-app-osx.c
+++ b/gedit/gedit-app-osx.c
@@ -175,8 +175,18 @@ load_keybindings (void)
 static void
 gedit_app_osx_startup (GApplication *application)
 {
+       const gchar *replace_accels[] = {
+               "<Primary><Alt>F",
+               NULL
+       };
+
        G_APPLICATION_CLASS (gedit_app_osx_parent_class)->startup (application);
 
+       gtk_application_set_accels_for_action (GTK_APPLICATION (application),
+                                              "win.replace",
+                                              replace_accels);
+
+       /* Load the osx specific keybinding overrides */
        load_keybindings ();
 }
 


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