summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/stack.ui
blob: d1f7c7a91c311c39e4fc8ef6aa3ead7fbc61fd8a (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <object class="GtkWindow" id="window1">
    <property name="title" translatable="yes">Stack</property>
    <property name="resizable">0</property>
    <child>
      <object class="GtkGrid">
        <child>
          <object class="GtkStackSwitcher">
            <property name="stack">stack</property>
            <property name="halign">center</property>
            <layout>
              <property name="left-attach">0</property>
              <property name="top-attach">0</property>
            </layout>
          </object>
        </child>
        <child>
          <object class="GtkStack" id="stack">
            <property name="transition-type">crossfade</property>
            <child>
              <object class="GtkStackPage">
                <property name="name">page1</property>
                <property name="title" translatable="yes">Page 1</property>
                <property name="child">
                  <object class="GtkImage">
                    <property name="margin-top">20</property>
                    <property name="margin-bottom">20</property>
                    <property name="pixel-size">100</property>
                    <property name="icon-name">org.gtk.Demo4</property>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">page2</property>
                <property name="title" translatable="yes">Page 2</property>
                <property name="child">
                  <object class="GtkCheckButton">
                    <property name="label" translatable="yes">Page 2</property>
                    <property name="halign">center</property>
                    <property name="valign">center</property>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">page3</property>
                <property name="icon-name">face-laugh-symbolic</property>
                <property name="child">
                  <object class="GtkSpinner">
                    <property name="halign">center</property>
                    <property name="valign">center</property>
                    <property name="spinning">1</property>
                  </object>
                </property>
              </object>
            </child>
            <layout>
              <property name="left-attach">0</property>
              <property name="top-attach">1</property>
            </layout>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>