Builder4/GtkView.bjs.XJOGMX
authorAlan Knowles <alan@roojs.com>
Fri, 19 Sep 2014 09:47:03 +0000 (17:47 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Sep 2014 09:47:03 +0000 (17:47 +0800)
Builder4/GtkView.bjs
Builder4/GtkView.vala

Builder4/GtkView.bjs
Builder4/GtkView.vala

index b98d3a0..ddb4204 100644 (file)
@@ -8,7 +8,13 @@
     "items" : [
         {
             "xtype" : "VPaned",
-            "$ xns" : "Gtk"
+            "$ xns" : "Gtk",
+            "items" : [
+                {
+                    "xtype" : "Viewport",
+                    "$ xns" : "Gtk"
+                }
+            ]
         }
     ]
 }
\ No newline at end of file
index 9ccd7bb..557d9d8 100644 (file)
@@ -24,7 +24,30 @@ public class GtkView : Object
         // my vars (dec)
 
         // set gobject values
+        var child_0 = new Xcls_Viewport2( _this );
+        child_0.ref();
     }
 
     // user defined functions 
+    public class Xcls_Viewport2 : Object 
+    {
+        public Gtk.Viewport el;
+        private GtkView  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_Viewport2(GtkView _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Viewport( null, null );
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions 
+    }
 }