src/Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 08:53:56 +0000 (16:53 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 08:53:56 +0000 (16:53 +0800)
src/Builder4/GtkView.vala

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

index b44dbf4..b0bc822 100644 (file)
@@ -24,6 +24,7 @@
    "# Xcls_MainWindow main_window" : "",
    "items" : [
     {
+     "id" : "notebook",
      "* pack" : "pack_start,true,true,0",
      "xtype" : "Notebook",
      "$ xns" : "Gtk",
index 062643b..243817f 100644 (file)
@@ -12,6 +12,7 @@ public class Xcls_GtkView : Object
         }
         return _GtkView;
     }
+    public Xcls_notebook notebook;
     public Xcls_label_preview label_preview;
     public Xcls_label_code label_code;
     public Xcls_view_layout view_layout;
@@ -38,7 +39,7 @@ public class Xcls_GtkView : Object
         this.height = 0;
 
         // set gobject values
-        var child_0 = new Xcls_Notebook2( _this );
+        var child_0 = new Xcls_notebook( _this );
         child_0.ref();
         this.el.pack_start (  child_0.el , true,true,0 );
 
@@ -138,7 +139,7 @@ public class Xcls_GtkView : Object
              
             
     }
-    public class Xcls_Notebook2 : Object
+    public class Xcls_notebook : Object
     {
         public Gtk.Notebook el;
         private Xcls_GtkView  _this;
@@ -147,9 +148,10 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Notebook2(Xcls_GtkView _owner )
+        public Xcls_notebook(Xcls_GtkView _owner )
         {
             _this = _owner;
+            _this.notebook = this;
             this.el = new Gtk.Notebook();
 
             // my vars (dec)