"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",
"int width" : 0,
"bool hexpand" : true,
"| int search" : "(string txt) {\n \tvar s = new Gtk.SourceSearchSettings();\n\tvar buf = (Gtk.SourceBuffer) this.sourceview.el.get_buffer();\n\tthis.searchcontext = new Gtk.SourceSearchContext(buf,s);\n\tthis.searchcontext.set_highlight(true);\n\ts.set_search_text(txt);\n\t\n\tGtk.TextIter beg, st,en;\n\t \n\tbuf.get_start_iter(out beg);\n\tthis.searchcontext.forward(beg, out st, out en);\n\t\n\treturn this.searchcontext.get_occurrences_count();\n\n \n}\n",
+ "int last_search_end" : 0,
"xtype" : "Box",
"Gtk.SourceSearchContext searchcontext" : "",
"# JsRender.JsRender file" : "null",
public Xcls_sourceview sourceview;
// my vars (def)
- public int XXX;
public Gtk.Widget lastObj;
public int width;
+ public int last_search_end;
public Gtk.SourceSearchContext searchcontext;
public JsRender.JsRender file;
public int height;
this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
// my vars (dec)
- this.XXX = 0;
this.lastObj = null;
this.width = 0;
+ this.last_search_end = 0;
this.file = null;
this.height = 0;