src/Builder4/CodeInfo.bjs
authorAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 08:00:52 +0000 (16:00 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 08:00:52 +0000 (16:00 +0800)
src/Builder4/CodeInfo.vala

src/Builder4/CodeInfo.bjs

index 7ed5ec7..e0168d7 100644 (file)
             {
              "$ xns" : "Gtk",
              "* prop" : "model",
+             "items" : [
+              {
+               "$ Gtk.TreeListModelCreateModelFunc create_func" : [
+                "(item) => {",
+                "",
+                "\treturn GLib.ListModel;",
+                "}",
+                ""
+               ],
+               "$ xns" : "Gtk",
+               "* prop" : "model",
+               "bool autoexpand" : true,
+               "bool passthrough" : true,
+               "xtype" : "TreeListModel"
+              }
+             ],
              "xtype" : "SingleSelection"
             }
            ],