[gnome-taquin] Retired App menu



commit 47e744352318cfefef98e2c7f2edcc405e44090c
Author: Andrés Fernández <andres softwareperonista com ar>
Date:   Wed Oct 10 11:24:54 2018 -0300

    Retired App menu
    
    The App menu has been retired as requested in goal.
    
    https://gitlab.gnome.org/GNOME/Initiatives/issues/4
    
    Signed-off-by: Andrés Fernández <andres softwareperonista com ar>

 data/Makefile.am         |  1 -
 data/taquin-menus.ui     | 28 ----------------------------
 data/taquin.ui           | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 src/taquin.gresource.xml |  3 ---
 4 files changed, 47 insertions(+), 32 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 8137df1..eb51e3d 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -3,7 +3,6 @@ SUBDIRS = \
        themes
 
 dist_noinst_DATA = \
-       taquin-menus.ui \
        taquin-screens.ui \
        taquin.ui \
        taquin.css \
diff --git a/data/taquin.ui b/data/taquin.ui
index 3b8ba24..8ca51ee 100644
--- a/data/taquin.ui
+++ b/data/taquin.ui
@@ -30,7 +30,30 @@
               </object>
             </child>
           </object>
+          <packing>
+            <property name="pack_type">start</property>
+            <property name="position">1</property>
+          </packing>
         </child>
+        <child>
+          <object class="GtkMenuButton">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="receives_default">False</property>
+            <property name="menu_model">window-menu</property>
+            <child>
+              <object class="GtkImage">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="icon_name">open-menu-symbolic</property>
+              </object>
+            </child>
+          </object>
+          <packing>
+            <property name="pack_type">end</property>
+            <property name="position">2</property>
+          </packing>
+         </child>
       </object>
     </child>
     <child>
@@ -108,4 +131,28 @@
       </object>
     </child>
   </template>
+  <menu id="window-menu">
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Sound</attribute>
+        <attribute name="action">app.sound</attribute>
+      </item>
+    </section>
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Help</attribute>
+        <attribute name="action">app.help</attribute>
+        <attribute name="accel">F1</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">_About Taquin</attribute>
+        <attribute name="action">app.about</attribute>
+      </item>
+      <item>
+        <attribute name="label" translatable="yes">_Quit</attribute>
+        <attribute name="action">app.quit</attribute>
+        <attribute name="accel">&lt;Primary&gt;q</attribute>
+      </item>
+    </section>
+  </menu>
 </interface>
diff --git a/src/taquin.gresource.xml b/src/taquin.gresource.xml
index 03f9198..65c360d 100644
--- a/src/taquin.gresource.xml
+++ b/src/taquin.gresource.xml
@@ -9,7 +9,4 @@
     <file preprocess="xml-stripblanks" alias="taquin-screens.ui">../data/taquin-screens.ui</file>
     <file alias="taquin.css">../data/taquin.css</file>
   </gresource>
-  <gresource prefix="/org/gnome/taquin/gtk">
-    <file preprocess="xml-stripblanks" alias="menus.ui">../data/taquin-menus.ui</file>
-  </gresource>
 </gresources>


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