[gbrainy/new_menu] Status



commit 612178a801496d325a404c9d8535ee070c9a8506
Author: Jordi Mas <jmas softcatala org>
Date:   Sun Jan 13 09:47:27 2019 +0100

    Status

 src/Clients/Classical/gbrainy.cs |  1 +
 src/Clients/Classical/gbrainy.ui | 16 ++++++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/src/Clients/Classical/gbrainy.cs b/src/Clients/Classical/gbrainy.cs
index 9b268da2..8cbc675a 100644
--- a/src/Clients/Classical/gbrainy.cs
+++ b/src/Clients/Classical/gbrainy.cs
@@ -50,6 +50,7 @@ namespace gbrainy.Clients.Classical
                [Builder.Object] Gtk.Button tip_button;
                [Builder.Object] Gtk.Button next_button;
                [Builder.Object] Gtk.Statusbar statusbar;
+        [Builder.Object] GLib.InitiallyUnowned primarymenu2;
 
 /*
         Next steps:
diff --git a/src/Clients/Classical/gbrainy.ui b/src/Clients/Classical/gbrainy.ui
index c2c703e6..42fb24ba 100644
--- a/src/Clients/Classical/gbrainy.ui
+++ b/src/Clients/Classical/gbrainy.ui
@@ -2,7 +2,7 @@
 <!-- Generated with glade 3.18.3 -->
 <interface>
   <requires lib="gtk+" version="3.10"/>
-  <menu id="primary-menu">
+  <menu id="primarymenu">
     <section>
                        <item>
                                <attribute name="id">newgame_menuitem</attribute>
@@ -12,6 +12,18 @@
                        </item>
     </section>
   </menu>
+
+ <menu id="primarymenu2">
+    <section>
+                       <item>
+                               <attribute name="id">newgame_menuitem</attribute>
+                               <attribute name="label" translatable="yes">_New Game</attribute>
+                               <attribute name="accel">&lt;Primary&gt;n</attribute>
+                <attribute name="action">OnAllGames</attribute>
+                       </item>
+    </section>
+  </menu>
+
   <object class="GtkAdjustment" id="adjustment1">
     <property name="lower">4</property>
     <property name="upper">60</property>
@@ -69,7 +81,7 @@
                                                <property name="valign">center</property>
                                                <property name="can_focus">True</property>
                                                <property name="focus_on_click">False</property>
-                                               <property name="menu_model">primary-menu</property>
+                                               <property name="menu_model">primarymenu</property>
                                                <style>
                                                        <class name="image-button" />
                                                </style>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]