source: trunk/third/libglade2/examples/simple.glade @ 18268

Revision 18268, 4.6 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18267, which included commits to RCS files with non-trunk default branches.
Line 
1<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
2<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd" >
3
4<glade-interface>
5  <widget class="GtkWindow" id="window1">
6    <property name="title" translatable="yes">Testing</property>
7    <property name="border_width">10</property>
8    <property name="visible">yes</property>
9    <property name="wmclass_name">somedialog</property>
10    <property name="cxx_use_heap" agent="glademm">yes</property>
11
12    <accessibility>
13      <atkproperty name="AtkObject::accessible-name">Test Frame</atkproperty>
14      <atkproperty name="AtkObject::accessible-description">
15          This is the first of two test windows.
16      </atkproperty>
17    </accessibility>
18
19    <child>
20      <widget class="GtkVBox" id="vbox1">
21        <property name="spacing">5</property>
22        <property name="visible">yes</property>
23
24        <child>
25          <widget class="GtkLabel" id="label1">
26            <property name="label" translatable="yes">A label</property>
27            <property name="visible">yes</property>
28            <accessibility>
29              <atkproperty name="AtkObject::accessible-name">A label</atkproperty>
30              <atkrelation target="button1" type="label_for"/>
31            </accessibility>
32          </widget>
33          <packing>
34            <property name="expand">no</property>
35          </packing>
36        </child>
37        <child>
38          <widget class="GtkButton" id="button1">
39            <property name="tooltip">I am a tooltip</property>
40            <property name="visible">yes</property>
41
42            <accessibility>
43              <atkproperty name="AtkObject::accessible-name">Push Me Button</atkproperty>
44              <atkproperty name="AtkObject::accessible-description">
45                This button wants to be pushed.
46              </atkproperty>
47              <atkaction action_name="click" description="This button
48dares you to invoke this action."/>
49              <atkaction action_name="press" description="This action
50does nothing interesting."/>
51              <atkrelation target="label1" type="labelled_by"/>
52            </accessibility>
53
54            <signal name="clicked" handler="gtk_main_quit" />
55
56            <child>
57              <widget class="GtkLabel" id="label2">
58                <property name="label" translatable="yes">_Push me</property>
59                <property name="use_underline">yes</property>
60                <property name="visible">yes</property>
61              </widget>
62            </child>
63          </widget>
64        </child>
65      </widget>
66    </child>
67  </widget>
68
69  <widget class="GtkDialog" id="dialog1">
70    <property name="title" translatable="yes">Testing2</property>
71    <property name="border_width">10</property>
72    <property name="visible">yes</property>
73
74    <accessibility>
75      <atkproperty name="AtkObject::accessible-name">Testing 2</atkproperty>
76      <atkproperty name="AtkObject::accessible-description">
77          This is the second of two test windows, a test dialog box.
78      </atkproperty>
79    </accessibility>
80
81    <child internal-child="vbox">
82      <widget class="GtkVBox" id="vbox2">
83        <child>
84          <widget class="GtkLabel" id="label3">
85            <property name="label" translatable="yes">Click the button below</property>
86            <property name="visible">yes</property>
87            <accessibility>
88              <atkrelation target="button2" type="label_for"/>
89            </accessibility>
90          </widget>
91          <packing>
92            <property name="expand">yes</property>
93          </packing>
94        </child>
95        <child internal-child="action_area">
96          <widget class="GtkHButtonBox" id="buttonbox1">
97            <child>
98              <widget class="GtkButton" id="button2">
99                <property name="label">gtk-cancel</property>
100                <property name="use_stock">yes</property>
101                <property name="visible">yes</property>
102 
103                <accessibility>
104                  <atkproperty name="AtkObject::accessible-name">Cancel</atkproperty>
105                  <atkproperty name="AtkObject::accessible-description">
106                    Another button that does the same as the first one...
107                  </atkproperty>
108                  <atkaction action_name="click" description="Cancel (and exit) the test."/>
109                  <atkaction action_name="press" description="This action
110does nothing interesting."/>
111                  <atkrelation target="label3" type="labelled_by"/>
112                </accessibility>
113
114                <signal name="clicked" handler="gtk_main_quit" />
115              </widget>
116            </child>
117          </widget>
118        </child>
119      </widget>
120    </child>
121  </widget>
122</glade-interface>
123
Note: See TracBrowser for help on using the repository browser.