summaryrefslogtreecommitdiff
path: root/src/gui/window.ui
blob: 70556950dd31b6a415097f04db1b1382236b04d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?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>
                <child>
                    <object class="GtkStack" id="grid">
                        <property name="vexpand">TRUE</property>
                    </object>
                </child>
            </object>
        </child>

    </template>

</interface>