[gnome-games] lightsoff: Fix up new GMenu code
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] lightsoff: Fix up new GMenu code
- Date: Mon, 20 Feb 2012 06:02:23 +0000 (UTC)
commit 09634cf014af0c5a87019fc7fc60e3e31a496ded
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Feb 20 16:56:41 2012 +1100
lightsoff: Fix up new GMenu code
lightsoff/src/lightsoff.vala | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/lightsoff/src/lightsoff.vala b/lightsoff/src/lightsoff.vala
index 003fe51..dcd7fc2 100644
--- a/lightsoff/src/lightsoff.vala
+++ b/lightsoff/src/lightsoff.vala
@@ -23,6 +23,19 @@ public class LightsOff : Gtk.Application
add_action_entries (action_entries, this);
+ var menu = new Menu ();
+ var section = new Menu ();
+ menu.append_section (null, section);
+ section.append (_("_New Game"), "app.new-game");
+ section = new Menu ();
+ menu.append_section (null, section);
+ section.append (_("_Help"), "app.help");
+ section.append (_("_About"), "app.about");
+ section = new Menu ();
+ menu.append_section (null, section);
+ section.append (_("_Quit"), "app.quit");
+ set_app_menu (menu);
+
settings = new Settings ("org.gnome.lightsoff");
window = new Gtk.ApplicationWindow (this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]