src/Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 06:54:02 +0000 (14:54 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 06:54:02 +0000 (14:54 +0800)
src/Builder4/GtkView.vala

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

index d8fb84b..84a1b7a 100644 (file)
    "$ xns" : "Gtk",
    "items" : [
     {
-     "* pack" : "pack_start,?bool?,?bool?,?uint?",
+     "* pack" : "pack_start,true,true,0",
      "xtype" : "Notebook",
      "$ xns" : "Gtk"
     },
+    {
+     "id" : "label_global",
+     "xtype" : "Label",
+     "* pack" : false,
+     "$ xns" : "Gtk",
+     "utf8 label" : "Global"
+    },
     {
      "* pack" : "pack_start,true,true,0",
      "xtype" : "ScrolledWindow",
index 340fc57..90ac31c 100644 (file)
@@ -12,6 +12,7 @@ public class Xcls_GtkView : Object
         }
         return _GtkView;
     }
+    public Xcls_label_global label_global;
     public Xcls_view_layout view_layout;
     public Xcls_container container;
 
@@ -37,10 +38,12 @@ public class Xcls_GtkView : Object
         // set gobject values
         var child_0 = new Xcls_Notebook2( _this );
         child_0.ref();
-        this.el.pack_start (  child_0.el , ?bool?,?bool?,?uint? );
-        var child_1 = new Xcls_ScrolledWindow3( _this );
+        this.el.pack_start (  child_0.el , true,true,0 );
+        var child_1 = new Xcls_label_global( _this );
         child_1.ref();
-        this.el.pack_start (  child_1.el , true,true,0 );
+        var child_2 = new Xcls_ScrolledWindow4( _this );
+        child_2.ref();
+        this.el.pack_start (  child_2.el , true,true,0 );
 
         //listeners
         this.el.size_allocate.connect( (aloc) => {
@@ -154,7 +157,30 @@ public class Xcls_GtkView : Object
         // user defined functions
     }
 
-    public class Xcls_ScrolledWindow3 : Object
+    public class Xcls_label_global : Object
+    {
+        public Gtk.Label el;
+        private Xcls_GtkView  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_label_global(Xcls_GtkView _owner )
+        {
+            _this = _owner;
+            _this.label_global = this;
+            this.el = new Gtk.Label( "Global" );
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions
+    }
+
+    public class Xcls_ScrolledWindow4 : Object
     {
         public Gtk.ScrolledWindow el;
         private Xcls_GtkView  _this;
@@ -163,7 +189,7 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor
-        public Xcls_ScrolledWindow3(Xcls_GtkView _owner )
+        public Xcls_ScrolledWindow4(Xcls_GtkView _owner )
         {
             _this = _owner;
             this.el = new Gtk.ScrolledWindow( null, null );