[gnome-klotski] Use set_accels_for_action().
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski] Use set_accels_for_action().
- Date: Sun, 21 Sep 2014 23:47:06 +0000 (UTC)
commit 7ef9244f6ecab916dc6cffd46ace8f4d20345712
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Sep 9 05:23:18 2014 +0200
Use set_accels_for_action().
https://bugzilla.gnome.org/show_bug.cgi?id=736301
src/gnome-klotski.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-klotski.vala b/src/gnome-klotski.vala
index ee196a9..c2a2d71 100644
--- a/src/gnome-klotski.vala
+++ b/src/gnome-klotski.vala
@@ -485,11 +485,11 @@ public class Klotski : Gtk.Application
prev_level_action = lookup_action ("prev-level") as SimpleAction;
prev_level_action.set_enabled (current_level > 0);
- add_accelerator ("<Primary>n", "app.new-game", null);
- add_accelerator ("<Primary>q", "app.quit", null);
- add_accelerator ("F1", "app.help", null);
- add_accelerator ("Page_Up", "app.next-level", null);
- add_accelerator ("Page_Down", "app.prev-level", null);
+ set_accels_for_action ("app.new-game", {"<Primary>n"});
+ set_accels_for_action ("app.quit", {"<Primary>q"});
+ set_accels_for_action ("app.help", {"F1"});
+ set_accels_for_action ("app.next-level", {"Page_Up"});
+ set_accels_for_action ("app.prev-level", {"Page_Down"});
string histfile = Path.build_filename (Environment.get_user_data_dir (), "gnome-klotski", "history");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]