summaryrefslogtreecommitdiff
path: root/examples/demo/demo-window.ui
blob: 1216714d64ada13cd9e4bd2f51ae9999232f0479 (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
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="DemoWindow" parent="AdwApplicationWindow">
    <property name="title">Librest Demo</property>
    <property name="default-width">900</property>
    <property name="default-height">600</property>
    <style>
      <class name="devel"/>
    </style>
    <child>
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkHeaderBar" id="headerbar">
          </object>
        </child>
        <child>
          <object class="GtkBox">
            <property name="orientation">horizontal</property>
            <child>
              <object class="AdwTabBar">
                <property name="view">tabview</property>
                <property name="autohide">false</property>
                <property name="end-action-widget">
                  <object class="GtkButton">
                    <signal name="clicked" handler="on_add_tab_clicked" object="DemoWindow" swapped="no"/>
                    <child>
                      <object class="GtkImage">
                        <property name="icon-name">list-add-symbolic</property>
                      </object>
                    </child>
                    <style>
                      <class name="flat"/>
                      <class name="end-action-widget"/>
                    </style>
                  </object>
                </property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="AdwTabView" id="tabview">
            <property name="vexpand">true</property>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>