[gitg] Add app menu accelerators when not in shell
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Add app menu accelerators when not in shell
- Date: Sun, 5 Jan 2014 17:26:33 +0000 (UTC)
commit 7e4f41f006bcc988ede830737aecd65e57d65441
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Jan 5 18:23:56 2014 +0100
Add app menu accelerators when not in shell
gitg/gitg-application.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-application.vala b/gitg/gitg-application.vala
index 98d23f3..2b1e98b 100644
--- a/gitg/gitg-application.vala
+++ b/gitg/gitg-application.vala
@@ -282,6 +282,12 @@ public class Application : Gtk.Application
set_app_menu(menu);
}
}
+ else
+ {
+ add_accelerator("<Primary>N", "app.new", null);
+ add_accelerator("<Primary>Q", "app.quit", null);
+ add_accelerator("F1", "app.help", null);
+ }
add_accelerator("<Control>F", "win.search", null);
add_accelerator("<Control>W", "win.close", null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]