[gnome-sudoku] Use set_accels_for_action().
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] Use set_accels_for_action().
- Date: Fri, 5 Sep 2014 13:56:00 +0000 (UTC)
commit 9347b896b7db04beb5cc73c20efe0df19adfc682
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Sep 5 00:20:25 2014 +0200
Use set_accels_for_action().
https://bugzilla.gnome.org/show_bug.cgi?id=735806
src/gnome-sudoku.vala | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index d241b03..96aa114 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -102,13 +102,13 @@ public class Sudoku : Gtk.Application
view.show_warnings = settings.get_boolean ("show-warnings"));
add_action (action);
- add_accelerator ("<Primary>z", "app.undo", null);
- add_accelerator ("<Primary><Shift>z", "app.redo", null);
- add_accelerator ("<Primary>r", "app.reset", null);
- add_accelerator ("<Primary>n", "app.new-game", null);
- add_accelerator ("<Primary>p", "app.print", null);
- add_accelerator ("<Primary>q", "app.quit", null);
- add_accelerator ("F1", "app.help", null);
+ set_accels_for_action ("app.new-game", {"<Primary>n"});
+ set_accels_for_action ("app.print", {"<Primary>p"});
+ set_accels_for_action ("app.quit", {"<Primary>q"});
+ set_accels_for_action ("app.reset", {"<Primary>r"});
+ set_accels_for_action ("app.undo", {"<Primary>z"});
+ set_accels_for_action ("app.redo", {"<Primary><Shift>z"});
+ set_accels_for_action ("app.help", {"F1"});
Gtk.Window.set_default_icon_name ("gnome-sudoku");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]