[libadwaita/wip/exalm/demo: 17/17] demo: Use a new window button instead of menu for tab view




commit a46d9a77c42053dfbd67792204e315aae60af698
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Oct 13 16:46:33 2021 +0500

    demo: Use a new window button instead of menu for tab view

 demo/adw-tab-view-demo-window.ui | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/demo/adw-tab-view-demo-window.ui b/demo/adw-tab-view-demo-window.ui
index 1da1777a..5e4b5354 100644
--- a/demo/adw-tab-view-demo-window.ui
+++ b/demo/adw-tab-view-demo-window.ui
@@ -18,9 +18,9 @@
               </object>
             </child>
             <child type="end">
-              <object class="GtkMenuButton">
-                <property name="menu-model">primary_menu</property>
-                <property name="icon-name">open-menu-symbolic</property>
+              <object class="GtkButton">
+                <property name="action-name">win.window-new</property>
+                <property name="icon-name">window-new-symbolic</property>
               </object>
             </child>
           </object>
@@ -45,14 +45,6 @@
       </object>
     </child>
   </template>
-  <menu id="primary_menu">
-    <section>
-      <item>
-        <attribute name="label" translatable="yes">_New Window</attribute>
-        <attribute name="action">win.window-new</attribute>
-      </item>
-    </section>
-  </menu>
   <menu id="tab_menu">
     <section>
       <item>


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