From e20941271bc26e20c775fa8d80fae5ea8ce74a39 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 29 Apr 2015 16:53:22 +0800 Subject: [PATCH] src/Builder4/GtkView.bjs src/Builder4/GtkView.vala --- src/Builder4/GtkView.bjs | 4 ++-- src/Builder4/GtkView.vala | 19 +++++++++---------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/Builder4/GtkView.bjs b/src/Builder4/GtkView.bjs index 67ca9a6fa..0d1484b4e 100644 --- a/src/Builder4/GtkView.bjs +++ b/src/Builder4/GtkView.bjs @@ -20,7 +20,7 @@ "xtype" : "VPaned", "# JsRender.JsRender file" : "null", "int height" : 0, - "| void compileNotice" : "( string type, string file, int line, string message ) {\n // if type = \"START\"... then we reset the tree?\n // the issue is that the compiler is continually going..\n // so editing a file etc.. may change things.?\n // probably not an issue.\n if (type ==\"START\") {\n // reset the tree;\n return;\n } \n \n //var tn = this.\n\n \n}\n", + "| void compileNotice" : "( type, file, line, message) {\n // if type = \"START\"... then we reset the tree?\n // the issue is that the compiler is continually going..\n // so editing a file etc.. may change things.?\n // probably not an issue.\n if (type ==\"START\") {\n // reset the tree;\n return;\n }\n \n \n \n}\n", "$ xns" : "Gtk", "items" : [ { @@ -79,7 +79,7 @@ "gint n_columns" : 1, "columns" : " typeof(string)", "* pack" : "set_model", - "xtype" : "ListStore", + "xtype" : "TreeStore", "$ xns" : "Gtk" }, { diff --git a/src/Builder4/GtkView.vala b/src/Builder4/GtkView.vala index 87bd77dee..d2f41859d 100644 --- a/src/Builder4/GtkView.vala +++ b/src/Builder4/GtkView.vala @@ -136,7 +136,7 @@ public class Xcls_GtkView : Object } - public void compileNotice ( string type, string file, int line, string message ) { + public void compileNotice ( type, file, line, message) { // if type = "START"... then we reset the tree? // the issue is that the compiler is continually going.. // so editing a file etc.. may change things.? @@ -144,10 +144,9 @@ public class Xcls_GtkView : Object if (type =="START") { // reset the tree; return; - } - - //var tn = this. - + } + + } public class Xcls_ScrolledWindow2 : Object @@ -339,7 +338,7 @@ public class Xcls_GtkView : Object // my vars (dec) // set gobject values - var child_0 = new Xcls_ListStore10( _this ); + var child_0 = new Xcls_TreeStore10( _this ); child_0.ref(); this.el.set_model ( child_0.el ); var child_1 = new Xcls_column( _this ); @@ -348,19 +347,19 @@ public class Xcls_GtkView : Object // user defined functions } - public class Xcls_ListStore10 : Object + public class Xcls_TreeStore10 : Object { - public Gtk.ListStore el; + public Gtk.TreeStore el; private Xcls_GtkView _this; // my vars (def) // ctor - public Xcls_ListStore10(Xcls_GtkView _owner ) + public Xcls_TreeStore10(Xcls_GtkView _owner ) { _this = _owner; - this.el = new Gtk.ListStore( 1, typeof(string) ); + this.el = new Gtk.TreeStore( 1, typeof(string) ); // my vars (dec) -- 2.39.2