widget-factory: Add a linked combobox example

This came up in https://bugzilla.gnome.org/show_bug.cgi?id=733979
This commit is contained in:
Matthias Clasen 2014-08-03 11:06:18 +02:00
parent a0c89af801
commit 97237fc54c

View File

@ -125,6 +125,22 @@
</row>
</data>
</object>
<object class="GtkListStore" id="lrmodel">
<columns>
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0">Left</col>
</row>
<row>
<col id="0">Middle</col>
</row>
<row>
<col id="0">Right</col>
</row>
</data>
</object>
<object class="GtkTextBuffer" id="textbuffer1">
<property name="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nullam fringilla, est ut feugiat ultrices, elit lacus ultricies nibh, id commodo tortor nisi id elit.
@ -481,6 +497,72 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
<property name="position">4</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<style>
<class name="linked"/>
</style>
<child>
<object class="GtkComboBox">
<property name="visible">True</property>
<property name="halign">fill</property>
<property name="model">lrmodel</property>
<property name="active">0</property>
<child>
<object class="GtkCellRendererText"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<object class="GtkComboBox">
<property name="visible">True</property>
<property name="halign">fill</property>
<property name="model">lrmodel</property>
<property name="active">1</property>
<child>
<object class="GtkCellRendererText"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<object class="GtkComboBox">
<property name="visible">True</property>
<property name="halign">fill</property>
<property name="model">lrmodel</property>
<property name="active">2</property>
<child>
<object class="GtkCellRendererText"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
</packing>
</child>
<child>
<object class="GtkBox" id="box18">
<property name="visible">True</property>
@ -541,7 +623,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">5</property>
</packing>
</child>
<child>
@ -798,7 +879,6 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">6</property>
</packing>
</child>
</object>