[five-or-more] Remove New Game from app menu
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more] Remove New Game from app menu
- Date: Sun, 25 Jan 2015 21:28:04 +0000 (UTC)
commit d192725c725efd69b50f2a692333298ca7e7c668
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Jan 25 15:27:02 2015 -0600
Remove New Game from app menu
data/menu.ui | 5 -----
src/five-or-more.c | 2 ++
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/data/menu.ui b/data/menu.ui
index ddb18a1..b6f78ce 100644
--- a/data/menu.ui
+++ b/data/menu.ui
@@ -4,11 +4,6 @@
<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>
- <item>
<attribute name="label" translatable="yes">Scores</attribute>
<attribute name="action">app.scores</attribute>
</item>
diff --git a/src/five-or-more.c b/src/five-or-more.c
index 63e964a..040df0c 100644
--- a/src/five-or-more.c
+++ b/src/five-or-more.c
@@ -1591,6 +1591,8 @@ startup_cb (GApplication *application)
app_actions, G_N_ELEMENTS (app_actions),
application);
+ gtk_application_add_accelerator (GTK_APPLICATION (application), "<Primary>N", "app.new-game", NULL);
+
settings = g_settings_new ("org.gnome.five-or-more");
highscores = games_scores_new ("five-or-more",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]