[chronojump] Load session treeview can sort by tags



commit 5698afa16e90daa36ecbc93af2dd7e55d783088a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sat Nov 28 23:57:29 2020 +0100

    Load session treeview can sort by tags

 src/gui/app1/session/loadAndImport.cs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/session/loadAndImport.cs b/src/gui/app1/session/loadAndImport.cs
index fd13cbce..a6c1557f 100644
--- a/src/gui/app1/session/loadAndImport.cs
+++ b/src/gui/app1/session/loadAndImport.cs
@@ -212,7 +212,12 @@ public partial class ChronoJumpWindow
                tv.AppendColumn (colName);
 
                if(loadOrImport)
-                       tv.AppendColumn ( Catalog.GetString ("Tags"), new CellRendererText(), "text", 
count++);
+               {
+                       Gtk.TreeViewColumn colTags = new Gtk.TreeViewColumn(Catalog.GetString ("Tags"), new 
CellRendererText(), "text", count);
+                       colTags.SortColumnId = count ++;
+                       colTags.SortIndicator = true;
+                       tv.AppendColumn (colTags);
+               }
 
                tv.AppendColumn ( Catalog.GetString ("Place"), new CellRendererText(), "text", count++);
                tv.AppendColumn ( Catalog.GetString ("Persons"), new CellRendererText(), "text", count++);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]