~ubuntu-branches/ubuntu/precise/libglade2/precise-proposed

« back to all changes in this revision

Viewing changes to examples/example.glade

  • Committer: Bazaar Package Importer
  • Author(s): Christian Marillat
  • Date: 2002-03-30 22:55:37 UTC
  • Revision ID: james.westby@ubuntu.com-20020330225537-jx47zcil1ybgy9qx
Tags: upstream-1.99.10
ImportĀ upstreamĀ versionĀ 1.99.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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="MainWindow">
 
6
    <property name="title" translatable="yes">LibGlade Test</property>
 
7
    <property name="type">GTK_WINDOW_TOPLEVEL</property>
 
8
    <property name="allow_shrink">yes</property>
 
9
    <property name="allow_grow">yes</property>
 
10
    <property name="window-position">GTK_WIN_POS_NONE</property>
 
11
    <property name="visible">yes</property>
 
12
 
 
13
    <signal name="destroy" handler="gtk_main_quit" />
 
14
 
 
15
    <child>
 
16
      <widget class="GtkVBox" id="vbox1">
 
17
        <property name="homogeneous">no</property>
 
18
        <property name="spacing">0</property>
 
19
        <property name="visible">yes</property>
 
20
 
 
21
        <child>
 
22
          <widget class="GtkHandleBox" id="handlebox1">
 
23
            <property name="visible">yes</property>
 
24
 
 
25
            <child>
 
26
              <widget class="GtkMenuBar" id="MenuBar">
 
27
                <property name="visible">yes</property>
 
28
 
 
29
                <child>
 
30
                  <widget class="GtkMenuItem" id="FileMenu">
 
31
                    <property name="label" translatable="yes">File</property>
 
32
                    <property name="visible">yes</property>
 
33
 
 
34
                    <child>
 
35
                      <widget class="GtkMenu" id="menu7">
 
36
                        <property name="visible">yes</property>
 
37
 
 
38
                        <child>
 
39
                          <widget class="GtkMenuItem" id="Quit">
 
40
                            <property name="label" translatable="yes">Quit</property>
 
41
                            <property name="visible">yes</property>
 
42
 
 
43
                            <signal name="activate" handler="gtk_main_quit" />
 
44
 
 
45
                            <accelerator key="Q" modifiers="GDK_CONTROL_MASK" signal="activate" />
 
46
                          </widget>
 
47
                        </child>
 
48
                      </widget>
 
49
                    </child>
 
50
                  </widget>
 
51
                </child>
 
52
 
 
53
                <child>
 
54
                  <widget class="GtkMenuItem" id="HelpMenu">
 
55
                    <property name="label" translatable="yes">Help</property>
 
56
                    <property name="visible">yes</property>
 
57
 
 
58
                    <child>
 
59
                      <widget class="GtkMenu" id="menu8">
 
60
                        <property name="visible">yes</property>
 
61
 
 
62
                        <child>
 
63
                          <widget class="GtkMenuItem" id="About">
 
64
                            <property name="label" translatable="yes">About...</property>
 
65
                            <property name="visible">yes</property>
 
66
 
 
67
                            <signal name="activate" handler="gtk_widget_show" object="AboutDialog" />
 
68
 
 
69
                            <accelerator key="A" modifiers="GDK_CONTROL_MASK" signal="activate" />
 
70
                          </widget>
 
71
                        </child>
 
72
                      </widget>
 
73
                    </child>
 
74
                  </widget>
 
75
                </child>
 
76
              </widget>
 
77
            </child>
 
78
          </widget>
 
79
          <packing>
 
80
            <property name="padding">0</property>
 
81
            <property name="expand">no</property>
 
82
            <property name="fill">yes</property>
 
83
          </packing>
 
84
        </child>
 
85
 
 
86
        <child>
 
87
          <widget class="GtkNotebook" id="notebook1">
 
88
            <property name="can_focus">yes</property>
 
89
            <property name="show_tabs">yes</property>
 
90
            <property name="show_border">yes</property>
 
91
            <property name="tab_pos">GTK_POS_TOP</property>
 
92
            <property name="scrollable">no</property>
 
93
            <property name="tab_border">3</property>
 
94
            <property name="enable-popup">no</property>
 
95
            <property name="visible">yes</property>
 
96
 
 
97
            <child>
 
98
              <widget class="GtkGammaCurve" id="gammacurve1">
 
99
                <property name="visible">yes</property>
 
100
              </widget>
 
101
            </child>
 
102
 
 
103
            <child>
 
104
              <widget class="GtkTable" id="table1">
 
105
                <property name="homogeneous">no</property>
 
106
                <property name="row_spacing">0</property>
 
107
                <property name="column_spacing">0</property>
 
108
                <property name="n-rows">2</property>
 
109
                <property name="n-columns">2</property>
 
110
                <property name="visible">yes</property>
 
111
 
 
112
                <child>
 
113
                  <widget class="GtkArrow" id="arrow2">
 
114
                    <property name="arrow_type">GTK_ARROW_UP</property>
 
115
                    <property name="shadow_type">GTK_SHADOW_OUT</property>
 
116
                    <property name="xalign">0.5</property>
 
117
                    <property name="yalign">0.5</property>
 
118
                    <property name="xpad">0</property>
 
119
                    <property name="ypad">0</property>
 
120
                    <property name="visible">yes</property>
 
121
                  </widget>
 
122
                  <packing>
 
123
                    <property name="left_attach">1</property>
 
124
                    <property name="right_attach">2</property>
 
125
                    <property name="top_attach">1</property>
 
126
                    <property name="bottom_attach">2</property>
 
127
                    <property name="x_padding">0</property>
 
128
                    <property name="y_padding">0</property>
 
129
                    <property name="x_options">expand|fill</property>
 
130
                    <property name="y_options">expand|fill</property>
 
131
                  </packing>
 
132
                </child>
 
133
 
 
134
                <child>
 
135
                  <widget class="GtkLabel" id="label6">
 
136
                    <property name="label" translatable="yes">~</property>
 
137
                    <property name="justify">GTK_JUSTIFY_CENTER</property>
 
138
                    <property name="xalign">0.5</property>
 
139
                    <property name="yalign">0.5</property>
 
140
                    <property name="xpad">0</property>
 
141
                    <property name="ypad">0</property>
 
142
                    <property name="visible">yes</property>
 
143
                  </widget>
 
144
                  <packing>
 
145
                    <property name="left_attach">0</property>
 
146
                    <property name="right_attach">1</property>
 
147
                    <property name="top_attach">0</property>
 
148
                    <property name="bottom_attach">1</property>
 
149
                    <property name="x_padding">0</property>
 
150
                    <property name="y_padding">0</property>
 
151
                    <property name="x_options">fill</property>
 
152
                    <property name="y_options">fill</property>
 
153
                  </packing>
 
154
                </child>
 
155
 
 
156
                <child>
 
157
                  <widget class="GtkVRuler" id="vruler3">
 
158
                    <property name="lower">0</property>
 
159
                    <property name="upper">10</property>
 
160
                    <property name="position">0</property>
 
161
                    <property name="max_size">10</property>
 
162
                    <property name="visible">yes</property>
 
163
                  </widget>
 
164
                  <packing>
 
165
                    <property name="left_attach">0</property>
 
166
                    <property name="right_attach">1</property>
 
167
                    <property name="top_attach">1</property>
 
168
                    <property name="bottom_attach">2</property>
 
169
                    <property name="x_padding">0</property>
 
170
                    <property name="y_padding">0</property>
 
171
                    <property name="x_options">fill</property>
 
172
                    <property name="y_options">expand|fill</property>
 
173
                  </packing>
 
174
                </child>
 
175
 
 
176
                <child>
 
177
                  <widget class="GtkHRuler" id="hruler3">
 
178
                    <property name="lower">0</property>
 
179
                    <property name="upper">10</property>
 
180
                    <property name="position">0</property>
 
181
                    <property name="max_size">10</property>
 
182
                    <property name="visible">yes</property>
 
183
                  </widget>
 
184
                  <packing>
 
185
                    <property name="left_attach">1</property>
 
186
                    <property name="right_attach">2</property>
 
187
                    <property name="top_attach">0</property>
 
188
                    <property name="bottom_attach">1</property>
 
189
                    <property name="x_padding">0</property>
 
190
                    <property name="y_padding">0</property>
 
191
                    <property name="x_options">expand|fill</property>
 
192
                    <property name="y_options">fill</property>
 
193
                  </packing>
 
194
                </child>
 
195
              </widget>
 
196
            </child>
 
197
 
 
198
            <child>
 
199
              <widget class="GtkFrame" id="frame2">
 
200
                <property name="label_xalign">0</property>
 
201
                <property name="shadow">GTK_SHADOW_ETCHED_IN</property>
 
202
                <property name="visible">yes</property>
 
203
 
 
204
                <child>
 
205
                  <widget class="GtkVPaned" id="vpaned1">
 
206
                    <property name="visible">yes</property>
 
207
 
 
208
                    <child>
 
209
                      <widget class="GtkHScale" id="hscale1">
 
210
                        <property name="can_focus">yes</property>
 
211
                        <property name="draw_value">yes</property>
 
212
                        <property name="value_pos">GTK_POS_TOP</property>
 
213
                        <property name="digits">1</property>
 
214
                        <property name="visible">yes</property>
 
215
                        <property name="adjustment">0 0 100 1 10 10</property>
 
216
                      </widget>
 
217
                    </child>
 
218
 
 
219
                    <child>
 
220
                      <widget class="GtkVBox" id="vbox2">
 
221
                        <property name="homogeneous">no</property>
 
222
                        <property name="spacing">0</property>
 
223
                        <property name="visible">yes</property>
 
224
 
 
225
                        <child>
 
226
                          <widget class="GtkProgressBar" id="progressbar1">
 
227
                            <property name="visible">yes</property>
 
228
                          </widget>
 
229
                          <packing>
 
230
                            <property name="padding">0</property>
 
231
                            <property name="expand">yes</property>
 
232
                            <property name="fill">yes</property>
 
233
                          </packing>
 
234
                        </child>
 
235
 
 
236
                        <child>
 
237
                          <widget class="GtkHScrollbar" id="hscrollbar1">
 
238
                            <property name="visible">yes</property>
 
239
                            <property name="adjustment">20 0 40 1 10 10</property>
 
240
                          </widget>
 
241
                          <packing>
 
242
                            <property name="padding">0</property>
 
243
                            <property name="expand">yes</property>
 
244
                            <property name="fill">yes</property>
 
245
                          </packing>
 
246
                        </child>
 
247
                      </widget>
 
248
                    </child>
 
249
                  </widget>
 
250
                </child>
 
251
              </widget>
 
252
            </child>
 
253
 
 
254
            <child>
 
255
              <widget class="GtkLabel" id="label2">
 
256
                <property name="label" translatable="yes">Gamma</property>
 
257
                <property name="justify">GTK_JUSTIFY_CENTER</property>
 
258
                <property name="xalign">0.5</property>
 
259
                <property name="yalign">0.5</property>
 
260
                <property name="xpad">0</property>
 
261
                <property name="ypad">0</property>
 
262
                <property name="visible">yes</property>
 
263
              </widget>
 
264
              <packing>
 
265
                <property name="type">tab</property>
 
266
              </packing>
 
267
            </child>
 
268
 
 
269
            <child>
 
270
              <widget class="GtkLabel" id="label3">
 
271
                <property name="label" translatable="yes">Rulers</property>
 
272
                <property name="justify">GTK_JUSTIFY_CENTER</property>
 
273
                <property name="xalign">0.5</property>
 
274
                <property name="yalign">0.5</property>
 
275
                <property name="xpad">0</property>
 
276
                <property name="ypad">0</property>
 
277
                <property name="visible">yes</property>
 
278
              </widget>
 
279
              <packing>
 
280
                <property name="type">tab</property>
 
281
              </packing>
 
282
            </child>
 
283
 
 
284
            <child>
 
285
              <widget class="GtkLabel" id="label4">
 
286
                <property name="label" translatable="yes">Ranges</property>
 
287
                <property name="justify">GTK_JUSTIFY_CENTER</property>
 
288
                <property name="xalign">0.5</property>
 
289
                <property name="yalign">0.5</property>
 
290
                <property name="xpad">0</property>
 
291
                <property name="ypad">0</property>
 
292
                <property name="visible">yes</property>
 
293
              </widget>
 
294
              <packing>
 
295
                <property name="type">tab</property>
 
296
              </packing>
 
297
            </child>
 
298
          </widget>
 
299
          <packing>
 
300
            <property name="padding">0</property>
 
301
            <property name="expand">yes</property>
 
302
            <property name="fill">yes</property>
 
303
          </packing>
 
304
        </child>
 
305
 
 
306
        <child>
 
307
          <widget class="GtkStatusbar" id="statusbar1">
 
308
            <property name="border_width">5</property>
 
309
            <property name="visible">yes</property>
 
310
          </widget>
 
311
          <packing>
 
312
            <property name="padding">0</property>
 
313
            <property name="expand">no</property>
 
314
            <property name="fill">yes</property>
 
315
          </packing>
 
316
        </child>
 
317
      </widget>
 
318
    </child>
 
319
  </widget>
 
320
  <widget class="GtkDialog" id="AboutDialog">
 
321
    <property name="visible">no</property>
 
322
    <property name="title" translatable="yes">About</property>
 
323
    <property name="type">GTK_WINDOW_TOPLEVEL</property>
 
324
    <property name="allow_shrink">yes</property>
 
325
    <property name="allow_grow">yes</property>
 
326
    <property name="window-position">GTK_WIN_POS_NONE</property>
 
327
 
 
328
    <signal name="delete_event" handler="gtk_true" />
 
329
    <signal name="delete_event" handler="gtk_widget_hide" />
 
330
 
 
331
    <child internal-child="vbox">
 
332
      <widget class="GtkVBox" id="dialog-vbox1">
 
333
        <property name="homogeneous">no</property>
 
334
        <property name="spacing">0</property>
 
335
        <property name="visible">yes</property>
 
336
 
 
337
        <child>
 
338
          <widget class="GtkFrame" id="frame1">
 
339
            <property name="border_width">5</property>
 
340
            <property name="label_xalign">0</property>
 
341
            <property name="shadow">GTK_SHADOW_ETCHED_IN</property>
 
342
            <property name="visible">yes</property>
 
343
 
 
344
            <child>
 
345
              <widget class="GtkLabel" id="label1">
 
346
                <property name="label" translatable="yes">LibGlade Example.
 
347
This interface (and the signals)
 
348
are all specified in XML.</property>
 
349
                <property name="justify">GTK_JUSTIFY_CENTER</property>
 
350
                <property name="xalign">0.5</property>
 
351
                <property name="yalign">0.5</property>
 
352
                <property name="xpad">0</property>
 
353
                <property name="ypad">0</property>
 
354
                <property name="visible">yes</property>
 
355
              </widget>
 
356
            </child>
 
357
          </widget>
 
358
          <packing>
 
359
            <property name="padding">0</property>
 
360
            <property name="expand">yes</property>
 
361
            <property name="fill">yes</property>
 
362
          </packing>
 
363
        </child>
 
364
 
 
365
        <child internal-child="action_area">
 
366
          <widget class="GtkHButtonBox" id="dialog-action_area1">
 
367
            <property name="border_width">10</property>
 
368
            <property name="homogeneous">yes</property>
 
369
            <property name="spacing">5</property>
 
370
            <property name="visible">yes</property>
 
371
 
 
372
            <child>
 
373
              <widget class="GtkButton" id="button1">
 
374
                <property name="has_default">yes</property>
 
375
                <property name="can_focus">yes</property>
 
376
                <property name="label" translatable="yes">OK</property>
 
377
                <property name="height-request">20</property>
 
378
                <property name="visible">yes</property>
 
379
 
 
380
                <signal name="clicked" handler="gtk_widget_hide" object="AboutDialog" />
 
381
              </widget>
 
382
              <packing>
 
383
                <property name="padding">0</property>
 
384
                <property name="expand">yes</property>
 
385
                <property name="fill">yes</property>
 
386
              </packing>
 
387
            </child>
 
388
          </widget>
 
389
          <packing>
 
390
            <property name="padding">0</property>
 
391
            <property name="expand">no</property>
 
392
            <property name="fill">yes</property>
 
393
            <property name="pack_type">GTK_PACK_END</property>
 
394
          </packing>
 
395
        </child>
 
396
      </widget>
 
397
    </child>
 
398
  </widget>
 
399
</glade-interface>