diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-08-03 11:06:18 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-08-03 11:07:25 +0200 |
commit | 97237fc54c394c8cf6617f9ab6948e57f1c81ef6 (patch) | |
tree | a4c08101f8910f46a280381841723aa537305a4b /demos | |
parent | a0c89af8012d3236e82394515ce4fccef18a7c7b (diff) | |
download | gtk+-97237fc54c394c8cf6617f9ab6948e57f1c81ef6.tar.gz |
widget-factory: Add a linked combobox example
This came up in https://bugzilla.gnome.org/show_bug.cgi?id=733979
Diffstat (limited to 'demos')
-rw-r--r-- | demos/widget-factory/widget-factory.ui | 84 |
1 files changed, 82 insertions, 2 deletions
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui index 8e222ca002..e675fd4a38 100644 --- a/demos/widget-factory/widget-factory.ui +++ b/demos/widget-factory/widget-factory.ui @@ -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. @@ -482,6 +498,72 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </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> <property name="can_focus">False</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> |