[gedit/wip/redesign2] Add accelerators for app actions



commit 959de3e626d9fd95a115b39502063c8047f60f48
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Mon Jan 6 22:33:50 2014 +0100

    Add accelerators for app actions

 gedit/gedit-app.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 06850d7..fd0d1de 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -495,6 +495,11 @@ gedit_app_startup (GApplication *application)
 
        /* Accelerators */
        gtk_application_add_accelerator (GTK_APPLICATION (application),
+                                        "<Control>Q", "app.quit", NULL);
+       gtk_application_add_accelerator (GTK_APPLICATION (application),
+                                        "F1", "app.help", NULL);
+
+       gtk_application_add_accelerator (GTK_APPLICATION (application),
                                         "<Control>O", "win.open", NULL);
        gtk_application_add_accelerator (GTK_APPLICATION (application),
                                         "<Control>S", "win.save", NULL);


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