[gnome-games/wip/exalm/actions: 1/10] collection-header-bar: Define primary menu as a menu
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/actions: 1/10] collection-header-bar: Define primary menu as a menu
- Date: Sun, 26 Jan 2020 17:10:30 +0000 (UTC)
commit 3a9a17669f7ef5113700c8807c5114c765179309
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Jan 26 01:37:09 2020 +0500
collection-header-bar: Define primary menu as a menu
data/ui/collection-header-bar.ui | 64 +++++++++++++---------------------------
1 file changed, 21 insertions(+), 43 deletions(-)
---
diff --git a/data/ui/collection-header-bar.ui b/data/ui/collection-header-bar.ui
index f8577d76..524a4096 100644
--- a/data/ui/collection-header-bar.ui
+++ b/data/ui/collection-header-bar.ui
@@ -39,7 +39,7 @@
</child>
<child>
<object class="GtkMenuButton" id="menu">
- <property name="popover">menu_popover</property>
+ <property name="menu-model">primary_menu</property>
<!-- Translators: tooltip for the application menu button -->
<property name="tooltip-text" translatable="yes">Menu</property>
<property name="valign">center</property>
@@ -166,46 +166,24 @@
</object>
</child>
</template>
- <object class="GtkPopover" id="menu_popover">
- <property name="visible">False</property>
- <child>
- <object class="GtkBox">
- <property name="margin">12</property>
- <property name="orientation">vertical</property>
- <property name="visible">True</property>
- <child>
- <object class="GtkModelButton">
- <property name="can-focus">True</property>
- <property name="text" translatable="yes">Pr_eferences</property>
- <property name="action-name">app.preferences</property>
- <property name="visible">True</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="can-focus">True</property>
- <property name="text" translatable="yes">_Keyboard Shortcuts</property>
- <property name="action-name">win.show-help-overlay</property>
- <property name="visible">True</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="can-focus">True</property>
- <property name="text" translatable="yes">_Help</property>
- <property name="action-name">app.help</property>
- <property name="visible">True</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="can-focus">True</property>
- <property name="text" translatable="yes">_About Games</property>
- <property name="action-name">app.about</property>
- <property name="visible">True</property>
- </object>
- </child>
- </object>
- </child>
- </object>
+ <menu id="primary_menu">
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">Pr_eferences</attribute>
+ <attribute name="action">app.preferences</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
+ <attribute name="action">win.show-help-overlay</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_Help</attribute>
+ <attribute name="action">app.help</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">_About Games</attribute>
+ <attribute name="action">app.about</attribute>
+ </item>
+ </section>
+ </menu>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]