src/Builder4/PopoverFiles.bjs
authorAlan <alan@roojs.com>
Fri, 20 May 2022 07:34:54 +0000 (15:34 +0800)
committerAlan <alan@roojs.com>
Fri, 20 May 2022 07:34:54 +0000 (15:34 +0800)
src/Builder4/PopoverFiles.vala

src/Builder4/PopoverFiles.bjs
src/Builder4/PopoverFiles.vala

index 13a5674..a5f393a 100644 (file)
            "id" : "fileview",
            "items" : [
             {
-             "$ columns" : "typeof(string), typeof(Object)",
+             "$ columns" : "typeof(string), typeof(string)",
              "$ xns" : "Gtk",
              "* init" : [
               "{",
              "* pack" : "set_model",
              "id" : "filemodel",
              "n_columns" : 2,
-             "xtype" : "ListStore"
+             "xtype" : "TreeStore"
             },
             {
              "$ xns" : "Gtk",
index 9114adf..e5f4334 100644 (file)
@@ -963,7 +963,7 @@ public class Xcls_PopoverFiles : Object
     }
     public class Xcls_filemodel : Object
     {
-        public Gtk.ListStore el;
+        public Gtk.TreeStore el;
         private Xcls_PopoverFiles  _this;
 
 
@@ -974,7 +974,7 @@ public class Xcls_PopoverFiles : Object
         {
             _this = _owner;
             _this.filemodel = this;
-            this.el = new Gtk.ListStore( 2, typeof(string), typeof(Object) );
+            this.el = new Gtk.TreeStore( 2, typeof(string), typeof(string) );
 
             // my vars (dec)