summaryrefslogtreecommitdiff
path: root/src/gui/window.ui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-08-23 21:36:25 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-08-23 21:36:25 (GMT)
commitc863d2d9093e7205107b5a6e56bd616c0703d4e4 (patch)
tree8b7cdd5a95cd79d143d87b98e2074f17e6fd53ee /src/gui/window.ui
parent370311f0a7176aa880dd0a15561c87a324fc111c (diff)
Restore an About dialog box.
Diffstat (limited to 'src/gui/window.ui')
-rw-r--r--src/gui/window.ui28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gui/window.ui b/src/gui/window.ui
index d9ca32c..7055695 100644
--- a/src/gui/window.ui
+++ b/src/gui/window.ui
@@ -1,10 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
+
+ <menu id="main_menu_model">
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">Preferences</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">About</attribute>
+ <attribute name="action">win.about</attribute>
+ </item>
+ </section>
+ </menu>
+
<template class="GtkFrameworkWindow" parent="GtkApplicationWindow">
<property name="title" translatable="no">Chrysalide</property>
<property name="default-width">800</property>
<property name="default-height">600</property>
<property name="icon-name">chrysalide-logo</property>
+
+ <child type="titlebar">
+ <object class="GtkHeaderBar">
+ <child type="end">
+ <object class="GtkMenuButton">
+ <property name="icon-name">open-menu-symbolic</property>
+ <property name="menu-model">main_menu_model</property>
+ </object>
+ </child>
+
+ </object>
+ </child>
+
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
@@ -15,5 +41,7 @@
</child>
</object>
</child>
+
</template>
+
</interface>