src/Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 13:22:30 +0000 (21:22 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 13:22:30 +0000 (21:22 +0800)
src/Builder4/GtkView.vala

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

index a51c54d..9471580 100644 (file)
@@ -11,6 +11,7 @@
    "listeners" : {
     "size_allocate" : "(aloc) => {\n\n    this.width = aloc.width;\n    this.height =aloc.height;\n    }\n"
    },
+   "int XXX" : 0,
    "| void scroll_to_line" : "(int line) {\n   this.notebook.el.page = 1;// code preview...\n   \n   GLib.Timeout.add(500, () => {\n   \n   \n\t   \n\t   \n\t\t  var buf = this.sourceview.el.get_buffer();\n\t \n\t\tvar sbuf = (Gtk.SourceBuffer) buf;\n\n\n\t\tGtk.TextIter iter;   \n\t\tsbuf.get_iter_at_line(out iter,  line);\n\t\tthis.sourceview.el.scroll_to_iter(iter,  0.1f, true, 0.0f, 0.5f);\n\t\treturn false;\n\t});   \n\n   \n}\n",
    "id" : "GtkView",
    "# Gtk.Widget lastObj" : "null",
index 0eecb7c..fde4179 100644 (file)
@@ -20,6 +20,7 @@ public class Xcls_GtkView : Object
     public Xcls_sourceview sourceview;
 
         // my vars (def)
+    public int XXX;
     public Gtk.Widget lastObj;
     public int width;
     public Gtk.SourceSearchContext searchcontext;
@@ -34,6 +35,7 @@ public class Xcls_GtkView : Object
         this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
         // my vars (dec)
+        this.XXX = 0;
         this.lastObj = null;
         this.width = 0;
         this.file = null;