[gnome-tetravex] Use set_accels_for_action().
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex] Use set_accels_for_action().
- Date: Tue, 14 Oct 2014 21:35:47 +0000 (UTC)
commit 1f1ac42fae492082aeaed3fff07796eda30dd11f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Sep 9 05:59:31 2014 +0200
Use set_accels_for_action().
https://bugzilla.gnome.org/show_bug.cgi?id=736304
src/gnome-tetravex.vala | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 075816d..1c8e9f0 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -71,14 +71,14 @@ public class Tetravex : Gtk.Application
Gtk.Window.set_default_icon_name ("gnome-tetravex");
add_action_entries (action_entries, this);
- add_accelerator ("<Primary>n", "app.new-game", null);
- add_accelerator ("Pause", "app.pause", null);
- add_accelerator ("F1", "app.help", null);
- add_accelerator ("<Primary>q", "app.quit", null);
- add_accelerator ("<Primary>Up", "app.move-up", null);
- add_accelerator ("<Primary>Down", "app.move-down", null);
- add_accelerator ("<Primary>Left", "app.move-left", null);
- add_accelerator ("<Primary>Right", "app.move-right", null);
+ set_accels_for_action ("app.new-game", {"<Primary>n"});
+ set_accels_for_action ("app.pause", {"Pause"});
+ set_accels_for_action ("app.help", {"F1"});
+ set_accels_for_action ("app.quit", {"<Primary>q"});
+ set_accels_for_action ("app.move-up", {"<Primary>Up"});
+ set_accels_for_action ("app.move-down", {"<Primary>Down"});
+ set_accels_for_action ("app.move-left", {"<Primary>Left"});
+ set_accels_for_action ("app.move-right", {"<Primary>Right"});
var builder = new Gtk.Builder ();
try
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]