[gnome-robots] Add New Game to app menu
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-robots] Add New Game to app menu
- Date: Sat, 21 Jun 2014 16:42:02 +0000 (UTC)
commit 639d9c90b7cfa33a730ce315d4b8e16317158c3c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Jun 21 10:29:21 2014 -0500
Add New Game to app menu
data/app-menu.ui | 7 +++++++
src/gnobots.c | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/data/app-menu.ui b/data/app-menu.ui
index a0df8bf..51b78a0 100644
--- a/data/app-menu.ui
+++ b/data/app-menu.ui
@@ -4,6 +4,13 @@
<menu id="appmenu">
<section>
<item>
+ <attribute name="label" translatable="yes">New Game</attribute>
+ <attribute name="action">app.new-game</attribute>
+ <attribute name="accel"><Primary>n</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
<attribute name="label" translatable="yes">Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
diff --git a/src/gnobots.c b/src/gnobots.c
index 72d2a6e..8c4f911 100644
--- a/src/gnobots.c
+++ b/src/gnobots.c
@@ -80,6 +80,7 @@ static void wait_cb (GSimpleAction *action, GVariant *parameter, gpointer user_d
/**********************************************************************/
static const GActionEntry app_entries[] = {
+ { "new-game", new_game_cb, NULL, NULL, NULL },
{ "preferences", preferences_cb, NULL, NULL, NULL },
{ "scores", scores_cb, NULL, NULL, NULL },
{ "help", help_cb, NULL, NULL, NULL },
@@ -88,7 +89,6 @@ static const GActionEntry app_entries[] = {
};
static const GActionEntry win_entries[] = {
- { "new-game", new_game_cb, NULL, NULL, NULL },
{ "random-teleport", random_teleport_cb, NULL, NULL, NULL },
{ "safe-teleport", safe_teleport_cb, NULL, NULL, NULL },
{ "wait", wait_cb, NULL, NULL, NULL },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]