Commit 97237fc5 authored by Matthias Clasen's avatar Matthias Clasen

widget-factory: Add a linked combobox example

This came up in https://bugzilla.gnome.org/show_bug.cgi?id=733979
parent a0c89af8
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment