<?xml version="1.0"?> <!--*- mode: xml -*--> <interface> <object class="GtkSizeGroup" id="sizegroup1"> <property name="mode">horizontal</property> <widgets> <widget name="label1"/> <widget name="label2"/> </widgets> </object> <object class="GtkWindow" id="shell"> <property name="default_height">300</property> <property name="default_width">550</property> <property context="yes" name="title" translatable="yes">Sizegroup example</property> <child> <object class="GtkVBox" id="vbox1"> <property name="visible">True</property> <child> <object class="GtkHBox" id="hbox1"> <property name="visible">True</property> <child> <object class="GtkLabel" id="label1"> <property name="justify">center</property> <property context="yes" name="label" translatable="yes">Full name</property> <property name="visible">True</property> </object> <packing> <property name="expand">False</property> <property name="padding">10</property> </packing> </child> <child> <object class="GtkEntry" id="entry1"> <property name="is_focus">True</property> <property name="visible">True</property> </object> <packing> <property name="position">1</property> </packing> </child> </object> <packing> <property name="expand">False</property> </packing> </child> <child> <object class="GtkHBox" id="hbox2"> <property name="visible">True</property> <child> <object class="GtkLabel" id="label2"> <property name="justify">center</property> <property context="yes" name="label" translatable="yes">Age</property> <property name="visible">True</property> </object> <packing> <property name="expand">False</property> <property name="padding">10</property> </packing> </child> <child> <object class="GtkEntry" id="entry2"> <property name="visible">True</property> </object> <packing> <property name="position">1</property> </packing> </child> </object> <packing> <property name="expand">False</property> <property name="position">1</property> </packing> </child> <child> <object class="GtkHSeparator" id="hseparator1"> <property name="visible">True</property> </object> <packing> <property name="expand">False</property> <property name="position">2</property> </packing> </child> <child> <object class="GtkEventBox" id="placeholder"> <property name="visible">True</property> <child> <object class="GtkLabel" id="labelX"> <property name="justify">center</property> <property context="yes" name="label" translatable="yes">Slave comes here (this widget is called "placeholder" and is packed inside a GtkEventBox)</property> <property name="visible">True</property> </object> </child> </object> <packing> <property name="position">3</property> </packing> </child> <child> <object class="GtkHSeparator" id="hseparator2"> <property name="visible">True</property> </object> <packing> <property name="expand">False</property> <property name="position">4</property> </packing> </child> <child> <object class="GtkEventBox" id="footer"> <property name="visible">True</property> <child> <object class="GtkHButtonBox" id="hbuttonbox1"> <property name="border_width">5</property> <property name="layout_style">end</property> <property name="spacing">5</property> <property name="visible">True</property> <child> <object class="GtkButton" id="ok"> <property name="can_default">True</property> <property name="has_default">True</property> <property context="yes" name="label" translatable="yes">OK</property> <property name="visible">True</property> </object> </child> </object> </child> </object> <packing> <property name="expand">False</property> <property name="fill">False</property> <property name="position">5</property> </packing> </child> </object> </child> </object> </interface>