[gnome-mahjongg] Use set_accels_for_action().
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg] Use set_accels_for_action().
- Date: Tue, 14 Oct 2014 21:32:28 +0000 (UTC)
commit 9fd9ddb5badd5eb0ad7a78e6633a91fd99d762d4
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Sep 9 03:40:07 2014 +0200
Use set_accels_for_action().
https://bugzilla.gnome.org/show_bug.cgi?id=736298
src/gnome-mahjongg.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index 5a382dc..83b32f6 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -61,10 +61,10 @@ public class Mahjongg : Gtk.Application
base.startup ();
add_action_entries (action_entries, this);
- add_accelerator ("Pause", "app.pause", null);
- add_accelerator ("<Primary>h", "app.hint", null);
- add_accelerator ("<Primary>z", "app.undo", null);
- add_accelerator ("<Primary><Shift>z", "app.redo", null);
+ set_accels_for_action ("app.pause", {"Pause"});
+ set_accels_for_action ("app.hint", {"<Primary>h"});
+ set_accels_for_action ("app.undo", {"<Primary>z"});
+ set_accels_for_action ("app.redo", {"<Primary><Shift>z"});
settings = new Settings ("org.gnome.mahjongg");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]