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

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

index f5c1542..6566941 100644 (file)
    "$ xns" : "Gtk",
    "items" : [
     {
-     "id" : "view_layout_sw",
-     "* pack" : "pack1,true,true",
-     "xtype" : "ScrolledWindow",
+     "id" : "view_layout",
+     "* pack" : "add",
+     "xtype" : "Layout",
      "$ xns" : "Gtk",
      "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",
-       "items" : [
-        {
-         "id" : "container",
-         "* pack" : "put,10,10",
-         "xtype" : "HBox",
-         "$ xns" : "Gtk"
-        }
-       ]
+       "id" : "container",
+       "xtype" : "HBox",
+       "* pack" : "put,10,10",
+       "$ xns" : "Gtk"
       }
      ]
     },
index e22dd09..6a98124 100644 (file)
@@ -12,7 +12,6 @@ public class Xcls_GtkView : Object
         }
         return _GtkView;
     }
-    public Xcls_view_layout_sw view_layout_sw;
     public Xcls_view_layout view_layout;
     public Xcls_container container;
     public Xcls_compile_view compile_view;
@@ -32,9 +31,9 @@ public class Xcls_GtkView : Object
         this.file = null;
 
         // set gobject values
-        var child_0 = new Xcls_view_layout_sw( _this );
+        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  );
         var child_1 = new Xcls_compile_view( _this );
         child_1.ref();
         this.el.pack2 (  child_1.el , true,true );
@@ -121,31 +120,6 @@ public class Xcls_GtkView : Object
             
              
             
-    }
-    public class Xcls_view_layout_sw : Object 
-    {
-        public Gtk.ScrolledWindow el;
-        private Xcls_GtkView  _this;
-
-
-            // my vars (def)
-
-        // ctor 
-        public Xcls_view_layout_sw(Xcls_GtkView _owner )
-        {
-            _this = _owner;
-            _this.view_layout_sw = this;
-            this.el = new Gtk.ScrolledWindow( null, null );
-
-            // my vars (dec)
-
-            // set gobject values
-            var child_0 = new Xcls_view_layout( _this );
-            child_0.ref();
-            this.el.add (  child_0.el  );
-        }
-
-        // user defined functions 
     }
     public class Xcls_view_layout : Object 
     {
@@ -168,13 +142,6 @@ 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 
@@ -219,17 +186,17 @@ public class Xcls_GtkView : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_HBox6( _this );
+            var child_0 = new Xcls_HBox5( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
-            var child_1 = new Xcls_HBox8( _this );
+            var child_1 = new Xcls_HBox7( _this );
             child_1.ref();
             this.el.pack_start (  child_1.el , true,true,0 );
         }
 
         // user defined functions 
     }
-    public class Xcls_HBox6 : Object 
+    public class Xcls_HBox5 : Object 
     {
         public Gtk.HBox el;
         private Xcls_GtkView  _this;
@@ -238,7 +205,7 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_HBox6(Xcls_GtkView _owner )
+        public Xcls_HBox5(Xcls_GtkView _owner )
         {
             _this = _owner;
             this.el = new Gtk.HBox( true, 0 );
@@ -246,14 +213,14 @@ public class Xcls_GtkView : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_Button7( _this );
+            var child_0 = new Xcls_Button6( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , true,true,0 );
         }
 
         // user defined functions 
     }
-    public class Xcls_Button7 : Object 
+    public class Xcls_Button6 : Object 
     {
         public Gtk.Button el;
         private Xcls_GtkView  _this;
@@ -262,7 +229,7 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button7(Xcls_GtkView _owner )
+        public Xcls_Button6(Xcls_GtkView _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -275,7 +242,7 @@ public class Xcls_GtkView : Object
 
         // user defined functions 
     }
-    public class Xcls_HBox8 : Object 
+    public class Xcls_HBox7 : Object 
     {
         public Gtk.HBox el;
         private Xcls_GtkView  _this;
@@ -284,7 +251,7 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_HBox8(Xcls_GtkView _owner )
+        public Xcls_HBox7(Xcls_GtkView _owner )
         {
             _this = _owner;
             this.el = new Gtk.HBox( true, 0 );
@@ -292,17 +259,17 @@ public class Xcls_GtkView : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_TreeView9( _this );
+            var child_0 = new Xcls_TreeView8( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_ScrolledWindow13( _this );
+            var child_1 = new Xcls_ScrolledWindow12( _this );
             child_1.ref();
             this.el.pack_start (  child_1.el , true,true,0 );
         }
 
         // user defined functions 
     }
-    public class Xcls_TreeView9 : Object 
+    public class Xcls_TreeView8 : Object 
     {
         public Gtk.TreeView el;
         private Xcls_GtkView  _this;
@@ -311,7 +278,7 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_TreeView9(Xcls_GtkView _owner )
+        public Xcls_TreeView8(Xcls_GtkView _owner )
         {
             _this = _owner;
             this.el = new Gtk.TreeView();
@@ -319,7 +286,7 @@ public class Xcls_GtkView : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_ListStore10( _this );
+            var child_0 = new Xcls_ListStore9( _this );
             child_0.ref();
             this.el.set_model (  child_0.el  );
             var child_1 = new Xcls_column( _this );
@@ -328,7 +295,7 @@ public class Xcls_GtkView : Object
 
         // user defined functions 
     }
-    public class Xcls_ListStore10 : Object 
+    public class Xcls_ListStore9 : Object 
     {
         public Gtk.ListStore el;
         private Xcls_GtkView  _this;
@@ -337,7 +304,7 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_ListStore10(Xcls_GtkView _owner )
+        public Xcls_ListStore9(Xcls_GtkView _owner )
         {
             _this = _owner;
             this.el = new Gtk.ListStore( 1,   typeof(string) );
@@ -367,14 +334,14 @@ public class Xcls_GtkView : Object
 
             // set gobject values
             this.el.title = "Compile output";
-            var child_0 = new Xcls_CellRendererText12( _this );
+            var child_0 = new Xcls_CellRendererText11( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false );
         }
 
         // user defined functions 
     }
-    public class Xcls_CellRendererText12 : Object 
+    public class Xcls_CellRendererText11 : Object 
     {
         public Gtk.CellRendererText el;
         private Xcls_GtkView  _this;
@@ -383,7 +350,7 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_CellRendererText12(Xcls_GtkView _owner )
+        public Xcls_CellRendererText11(Xcls_GtkView _owner )
         {
             _this = _owner;
             this.el = new Gtk.CellRendererText();
@@ -395,7 +362,7 @@ public class Xcls_GtkView : Object
 
         // user defined functions 
     }
-    public class Xcls_ScrolledWindow13 : Object 
+    public class Xcls_ScrolledWindow12 : Object 
     {
         public Gtk.ScrolledWindow el;
         private Xcls_GtkView  _this;
@@ -404,7 +371,7 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_ScrolledWindow13(Xcls_GtkView _owner )
+        public Xcls_ScrolledWindow12(Xcls_GtkView _owner )
         {
             _this = _owner;
             this.el = new Gtk.ScrolledWindow( null, null );
@@ -412,14 +379,14 @@ public class Xcls_GtkView : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_View14( _this );
+            var child_0 = new Xcls_View13( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
         }
 
         // user defined functions 
     }
-    public class Xcls_View14 : Object 
+    public class Xcls_View13 : Object 
     {
         public Gtk.SourceView el;
         private Xcls_GtkView  _this;
@@ -428,7 +395,7 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_View14(Xcls_GtkView _owner )
+        public Xcls_View13(Xcls_GtkView _owner )
         {
             _this = _owner;
             this.el = new Gtk.SourceView();