[gtk+] widget-factory: Expand the treeview example a bit
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget-factory: Expand the treeview example a bit
- Date: Thu, 3 Jul 2014 03:55:50 +0000 (UTC)
commit f64b6b3479ef9a465cf51f0cd9fb0b5bf90ccb56
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 2 23:55:20 2014 -0400
widget-factory: Expand the treeview example a bit
Show resizable, sortable and ellipsizable columns.
demos/widget-factory/widget-factory.ui | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 9f2a097..b0f1917 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -132,6 +132,12 @@
<col id="2" translatable="yes">Otto</col>
<col id="3" translatable="yes">chaotic</col>
</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>
</object>
<object class="GtkTextBuffer" id="textbuffer1">
@@ -1366,8 +1372,13 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
<child>
<object class="GtkTreeViewColumn" id="treeviewcolumn1">
<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>
- <object class="GtkCellRendererText" id="cellrenderertext3"/>
+ <object class="GtkCellRendererText" id="cellrenderertext3">
+ <property name="ellipsize">end</property>
+ </object>
<attributes>
<attribute name="text">2</attribute>
</attributes>
@@ -1377,8 +1388,13 @@ Suspendisse feugiat quam quis dolor accumsan cursus. </property>
<child>
<object class="GtkTreeViewColumn" id="treeviewcolumn2">
<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>
- <object class="GtkCellRendererText" id="cellrenderertext4"/>
+ <object class="GtkCellRendererText" id="cellrenderertext4">
+ <property name="ellipsize">end</property>
+ </object>
<attributes>
<attribute name="text">3</attribute>
</attributes>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]