[iagno] Remove app-menu's new-game entry.
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Remove app-menu's new-game entry.
- Date: Thu, 25 Sep 2014 13:04:05 +0000 (UTC)
commit 1ba5c068cad6e55ba33a8f9961dae65d5f72e0a5
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Sep 25 10:13:23 2014 +0200
Remove app-menu's new-game entry.
https://bugzilla.gnome.org/show_bug.cgi?id=664976
data/iagno-menus.ui | 5 -----
src/iagno.vala | 1 +
2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/data/iagno-menus.ui b/data/iagno-menus.ui
index 05fad5c..bfcfb8c 100644
--- a/data/iagno-menus.ui
+++ b/data/iagno-menus.ui
@@ -4,11 +4,6 @@
<menu id="app-menu">
<section>
<item>
- <attribute name="label" translatable="yes">_New Game</attribute>
- <attribute name="action">app.new-game</attribute>
- <attribute name="accel"><Primary>n</attribute>
- </item>
- <item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
diff --git a/src/iagno.vala b/src/iagno.vala
index 3307e75..538d120 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -161,6 +161,7 @@ public class Iagno : Gtk.Application
{
base.startup ();
add_action_entries (app_actions, this);
+ set_accels_for_action ("app.new-game", {"<Primary>n"});
set_accels_for_action ("app.undo-move", {"<Primary>z"});
var builder = new Gtk.Builder.from_resource ("/org/gnome/iagno/ui/iagno.ui");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]