widget-factory: add a symbolic icon column in the treeview example

This commit is contained in:
Cosimo Cecchi 2012-06-26 11:41:21 -04:00
parent 68542f222d
commit e393fdeedd

View File

@ -18,6 +18,8 @@
<columns> <columns>
<!-- column-name Cool --> <!-- column-name Cool -->
<column type="gboolean"/> <column type="gboolean"/>
<!-- column-name Icon -->
<column type="gchararray"/>
<!-- column-name Name --> <!-- column-name Name -->
<column type="gchararray"/> <column type="gchararray"/>
<!-- column-name Nick --> <!-- column-name Nick -->
@ -26,13 +28,15 @@
<data> <data>
<row> <row>
<col id="0">True</col> <col id="0">True</col>
<col id="1" translatable="yes">Andrea</col> <col id="1">emblem-default-symbolic</col>
<col id="2" translatable="yes">Cimi</col> <col id="2" translatable="yes">Andrea</col>
<col id="3" translatable="yes">Cimi</col>
</row> </row>
<row> <row>
<col id="0">False</col> <col id="0">False</col>
<col id="1" translatable="yes">Otto</col> <col id="1">emblem-important-symbolic</col>
<col id="2" translatable="yes">chaotic</col> <col id="2" translatable="yes">Otto</col>
<col id="3" translatable="yes">chaotic</col>
</row> </row>
</data> </data>
</object> </object>
@ -1638,13 +1642,26 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
</child> </child>
</object> </object>
</child> </child>
<child>
<object class="GtkTreeViewColumn" id="treeviewcolumn4">
<property name="title" translatable="yes">Icon</property>
<child>
<object class="GtkCellRendererPixbuf" id="cellrendererpixbuf1">
<property name="follow_state">true</property>
</object>
<attributes>
<attribute name="icon_name">1</attribute>
</attributes>
</child>
</object>
</child>
<child> <child>
<object class="GtkTreeViewColumn" id="treeviewcolumn1"> <object class="GtkTreeViewColumn" id="treeviewcolumn1">
<property name="title" translatable="yes">Name</property> <property name="title" translatable="yes">Name</property>
<child> <child>
<object class="GtkCellRendererText" id="cellrenderertext3"/> <object class="GtkCellRendererText" id="cellrenderertext3"/>
<attributes> <attributes>
<attribute name="text">1</attribute> <attribute name="text">2</attribute>
</attributes> </attributes>
</child> </child>
</object> </object>
@ -1655,7 +1672,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
<child> <child>
<object class="GtkCellRendererText" id="cellrenderertext4"/> <object class="GtkCellRendererText" id="cellrenderertext4"/>
<attributes> <attributes>
<attribute name="text">2</attribute> <attribute name="text">3</attribute>
</attributes> </attributes>
</child> </child>
</object> </object>