[gtk+] widget-factory: Add a linked combobox example
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget-factory: Add a linked combobox example
- Date: Sun, 3 Aug 2014 09:07:38 +0000 (UTC)
commit 97237fc54c394c8cf6617f9ab6948e57f1c81ef6
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Aug 3 11:06:18 2014 +0200
widget-factory: Add a linked combobox example
This came up in https://bugzilla.gnome.org/show_bug.cgi?id=733979
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 8e222ca..e675fd4 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]