src/Builder4/WindowRooView.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 3 Jun 2015 03:43:55 +0000 (11:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 3 Jun 2015 03:43:55 +0000 (11:43 +0800)
src/Builder4/WindowRooView.vala

src/Builder4/WindowRooView.bjs
src/Builder4/WindowRooView.vala

index 008dc61..0a3ab57 100644 (file)
@@ -8,9 +8,6 @@
  "build_module" : "builder",
  "items" : [
   {
-   "listeners" : {
-    "size_allocate" : "(aloc) => {\n\n    this.width = aloc.width;\n    this.height =aloc.height;\n}\n "
-   },
    "| 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" : "WindowRooView",
    "# Gtk.Widget lastObj" : "null",
index 615213b..a9f4243 100644 (file)
@@ -50,13 +50,6 @@ public class Xcls_WindowRooView : Object
         var child_0 = new Xcls_notebook( _this );
         child_0.ref();
         this.el.pack_start (  child_0.el , true,true,0 );
-
-        //listeners
-        this.el.size_allocate.connect( (aloc) => {
-        
-            this.width = aloc.width;
-            this.height =aloc.height;
-        });
     }
 
     // user defined functions