src/Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 29 Apr 2015 09:26:48 +0000 (17:26 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 29 Apr 2015 09:26:48 +0000 (17:26 +0800)
src/Builder4/GtkView.vala

src/Builder4/GtkView.bjs
src/Builder4/GtkView.vala

index 0847758..c362857 100644 (file)
@@ -82,7 +82,7 @@
            "* pack" : "set_model",
            "xtype" : "TreeStore",
            "$ xns" : "Gtk",
-           "| Gtk.TreePath nodeFindOrCreate" : "(Gtk.TreePath? par, string id, string text) {\n    return par;\n}\n"
+           "| Gtk.TreePath nodeFindOrCreate" : "(Gtk.TreePath? par, string id, string text) {\n     return new Gtk.TreePath ();\n} \n"
           },
           {
            "utf8 title" : "Compile output",
index 66ea757..2a40658 100644 (file)
@@ -370,7 +370,7 @@ public class Xcls_GtkView : Object
 
         // user defined functions 
         public Gtk.TreePath nodeFindOrCreate (Gtk.TreePath? par, string id, string text) {
-            return par;
+             return new Gtk.TreePath ();
         }
     }
     public class Xcls_column : Object