[gnome-games/gnome-3-6] Add missing keyboard accelerators (F1, Ctrl+Q, Ctrl+N)



commit cdefc059320ca66951da860145750bdd596d7344
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Sun Nov 4 01:06:07 2012 -0400

    Add missing keyboard accelerators (F1, Ctrl+Q, Ctrl+N)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687549

 gnome-mahjongg/src/gnome-mahjongg.vala |    1 +
 lightsoff/src/lightsoff.vala           |    3 +++
 swell-foop/src/swell-foop.vala         |    2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gnome-mahjongg/src/gnome-mahjongg.vala b/gnome-mahjongg/src/gnome-mahjongg.vala
index c137e02..cf31121 100644
--- a/gnome-mahjongg/src/gnome-mahjongg.vala
+++ b/gnome-mahjongg/src/gnome-mahjongg.vala
@@ -29,6 +29,7 @@ public class Mahjongg : Gtk.Application
         add_accelerator ("<Primary>h", "app.hint", null);
         add_accelerator ("<Primary>z", "app.undo", null);
         add_accelerator ("<Primary><Shift>z", "app.redo", null);
+        add_accelerator ("<F1", "app.help", null);
         add_accelerator ("<Primary>q", "app.quit", null);
     }
 
diff --git a/lightsoff/src/lightsoff.vala b/lightsoff/src/lightsoff.vala
index d97a54c..bd22e43 100644
--- a/lightsoff/src/lightsoff.vala
+++ b/lightsoff/src/lightsoff.vala
@@ -22,6 +22,9 @@ public class LightsOff : Gtk.Application
         base.startup ();
 
         add_action_entries (action_entries, this);
+        add_accelerator ("<Primary>n", "app.new-game", null);
+        add_accelerator ("F1", "app.help", null);
+        add_accelerator ("<Primary>q", "app.quit", null);
 
         var menu = new Menu ();
         var section = new Menu ();
diff --git a/swell-foop/src/swell-foop.vala b/swell-foop/src/swell-foop.vala
index 7ff5551..804eb13 100644
--- a/swell-foop/src/swell-foop.vala
+++ b/swell-foop/src/swell-foop.vala
@@ -48,6 +48,8 @@ public class SwellFoop : Gtk.Application
 
         add_action_entries (action_entries, this);
         add_accelerator ("<Primary>n", "app.new-game", null);
+        add_accelerator ("F1", "app.help", null);
+        add_accelerator ("<Primary>q", "app.quit", null);
 
         /* Create the main window */
         main_window = new Gtk.ApplicationWindow (this);



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