widget-factory: Expand the treeview example a bit

Show resizable, sortable and ellipsizable columns.
This commit is contained in:
Matthias Clasen 2014-07-02 23:55:20 -04:00
parent b369719bcd
commit f64b6b3479

View File

@ -132,6 +132,12 @@
<col id="2" translatable="yes">Otto</col> <col id="2" translatable="yes">Otto</col>
<col id="3" translatable="yes">chaotic</col> <col id="3" translatable="yes">chaotic</col>
</row> </row>
<row>
<col id="0">True</col>
<col id="1">weather-clear-night-symbolic</col>
<col id="2" translatable="yes">Orville</col>
<col id="3" translatable="yes">Redenbacher</col>
</row>
</data> </data>
</object> </object>
<object class="GtkTextBuffer" id="textbuffer1"> <object class="GtkTextBuffer" id="textbuffer1">
@ -1366,8 +1372,13 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
<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>
<property name="resizable">True</property>
<property name="sort-indicator">True</property>
<property name="sort-column-id">2</property>
<child> <child>
<object class="GtkCellRendererText" id="cellrenderertext3"/> <object class="GtkCellRendererText" id="cellrenderertext3">
<property name="ellipsize">end</property>
</object>
<attributes> <attributes>
<attribute name="text">2</attribute> <attribute name="text">2</attribute>
</attributes> </attributes>
@ -1377,8 +1388,13 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
<child> <child>
<object class="GtkTreeViewColumn" id="treeviewcolumn2"> <object class="GtkTreeViewColumn" id="treeviewcolumn2">
<property name="title" translatable="yes">Nick</property> <property name="title" translatable="yes">Nick</property>
<property name="resizable">True</property>
<property name="sort-indicator">True</property>
<property name="sort-column-id">3</property>
<child> <child>
<object class="GtkCellRendererText" id="cellrenderertext4"/> <object class="GtkCellRendererText" id="cellrenderertext4">
<property name="ellipsize">end</property>
</object>
<attributes> <attributes>
<attribute name="text">3</attribute> <attribute name="text">3</attribute>
</attributes> </attributes>