src/Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 23 Mar 2015 10:18:10 +0000 (18:18 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Mar 2015 10:18:10 +0000 (18:18 +0800)
src/Builder4/GtkView.vala

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

index bf0bc37..f5c1542 100644 (file)
@@ -26,6 +26,7 @@
      "items" : [
       {
        "id" : "view_layout",
+       "* init" : "{\n    this.el.set_hadjustment(_this.view_layout_sw.hadjustment);\n    this.el.set_vadjustment(_this.view_layout_sw.vadjustment);\n}\n",
        "* pack" : "add",
        "xtype" : "Layout",
        "$ xns" : "Gtk",
index fc7d83e..e22dd09 100644 (file)
@@ -168,6 +168,13 @@ public class Xcls_GtkView : Object
             var child_0 = new Xcls_container( _this );
             child_0.ref();
             this.el.put (  child_0.el , 10,10 );
+
+            // init method 
+
+            {
+                this.el.set_hadjustment(_this.view_layout_sw.hadjustment);
+                this.el.set_vadjustment(_this.view_layout_sw.vadjustment);
+            }
         }
 
         // user defined functions