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

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

index 7786bca..71df943 100644 (file)
    "$ xns" : "Gtk",
    "items" : [
     {
-     "* pack" : "add",
+     "* pack" : "pack1,true,true",
      "xtype" : "ScrolledWindow",
      "$ xns" : "Gtk",
      "items" : [
       {
        "id" : "view_layout",
-       "* pack" : "pack1,true,true",
+       "* pack" : "add",
        "xtype" : "Layout",
        "$ xns" : "Gtk",
        "items" : [
index 2c1c77e..808f7bb 100644 (file)
@@ -33,7 +33,7 @@ public class Xcls_GtkView : Object
         // set gobject values
         var child_0 = new Xcls_ScrolledWindow2( _this );
         child_0.ref();
-        this.el.add (  child_0.el  );
+        this.el.pack1 (  child_0.el , true,true );
         var child_1 = new Xcls_compile_view( _this );
         child_1.ref();
         this.el.pack2 (  child_1.el , true,true );
@@ -140,7 +140,7 @@ public class Xcls_GtkView : Object
             // set gobject values
             var child_0 = new Xcls_view_layout( _this );
             child_0.ref();
-            this.el.pack1 (  child_0.el , true,true );
+            this.el.add (  child_0.el  );
         }
 
         // user defined functions