diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-01-20 01:30:34 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-01-20 01:30:34 -0500 |
commit | b29af18a268d595f84d0904ea97c67d03e2b984b (patch) | |
tree | a692adba61d5ad5c316bb192ad71885447a83e96 /examples/builder.ui | |
parent | 99812be7d70ddffc825ed031ea29435b0466a4bf (diff) | |
download | gtk+-b29af18a268d595f84d0904ea97c67d03e2b984b.tar.gz |
Add a GtkBuilder section to the tutorial
Diffstat (limited to 'examples/builder.ui')
-rw-r--r-- | examples/builder.ui | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/examples/builder.ui b/examples/builder.ui new file mode 100644 index 0000000000..6321c93ca0 --- /dev/null +++ b/examples/builder.ui @@ -0,0 +1,45 @@ +<interface> + <object id="window" class="GtkWindow"> + <property name="visible">True</property> + <property name="title">Grid</property> + <property name="border-width">10</property> + <child> + <object id="grid" class="GtkGrid"> + <property name="visible">True</property> + <child> + <object id="button1" class="GtkButton"> + <property name="visible">True</property> + <property name="label">Button 1</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + </packing> + </child> + <child> + <object id="button2" class="GtkButton"> + <property name="visible">True</property> + <property name="label">Button 2</property> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">0</property> + </packing> + </child> + <child> + <object id="quit" class="GtkButton"> + <property name="visible">True</property> + <property name="label">Quit</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + <property name="width">2</property> + </packing> + </child> + </object> + <packing> + </packing> + </child> + </object> +</interface> |