diff options
author | Günther Wagner <info@gunibert.de> | 2022-02-01 21:59:54 +0100 |
---|---|---|
committer | Günther Wagner <info@gunibert.de> | 2022-02-01 22:18:07 +0100 |
commit | 51b5ed4003c8d074e6edbbd946524d30e1b84ad5 (patch) | |
tree | 10fd8c202a19b226910cbd7fcbe3243051fd0113 /examples/demo/demo-window.ui | |
parent | 9c4e1e0619d220347e58e43c9fed5b42566bcf16 (diff) | |
download | librest-51b5ed4003c8d074e6edbbd946524d30e1b84ad5.tar.gz |
demo: add about dialog
Diffstat (limited to 'examples/demo/demo-window.ui')
-rw-r--r-- | examples/demo/demo-window.ui | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/demo/demo-window.ui b/examples/demo/demo-window.ui index 1216714..6134770 100644 --- a/examples/demo/demo-window.ui +++ b/examples/demo/demo-window.ui @@ -1,6 +1,14 @@ <?xml version="1.0" encoding="UTF-8"?> <interface> <requires lib="gtk" version="4.0"/> + <menu id="primary_menu"> + <section> + <item> + <attribute name="label" translatable="yes">_About Librest Demo</attribute> + <attribute name="action">app.about</attribute> + </item> + </section> + </menu> <template class="DemoWindow" parent="AdwApplicationWindow"> <property name="title">Librest Demo</property> <property name="default-width">900</property> @@ -13,6 +21,12 @@ <property name="orientation">vertical</property> <child> <object class="GtkHeaderBar" id="headerbar"> + <child type="end"> + <object class="GtkMenuButton"> + <property name="menu-model">primary_menu</property> + <property name="icon-name">open-menu-symbolic</property> + </object> + </child> </object> </child> <child> |