[gedit/wip/3.14-osx: 20/69] [osx] Override accel for win.replace
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/3.14-osx: 20/69] [osx] Override accel for win.replace
- Date: Tue, 26 Aug 2014 12:35:54 +0000 (UTC)
commit 5524f5efd1b720f639b6944a4ae06a89b6f2a677
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]