[swell-foop] Use set_accels_for_action().



commit 21bee2fd38ad7d5d0d2e38fee5316ce2855d9bbf
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Sep 9 06:14:11 2014 +0200

    Use set_accels_for_action().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736306

 src/swell-foop.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/swell-foop.vala b/src/swell-foop.vala
index e77f4e6..795c133 100644
--- a/src/swell-foop.vala
+++ b/src/swell-foop.vala
@@ -62,9 +62,9 @@ public class SwellFoop : Gtk.Application
         settings = new Settings ("org.gnome.swell-foop");
 
         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);
+        set_accels_for_action ("app.new-game", {"<Primary>n"});
+        set_accels_for_action ("app.help", {"F1"});
+        set_accels_for_action ("app.quit", {"<Primary>q"});
 
         /* Create the main window */
         window = new Gtk.ApplicationWindow (this);


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