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

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

index fcd88d0..ba28465 100644 (file)
        "* pack" : false,
        "xtype" : "Label",
        "$ xns" : "Gtk",
-       "utf8 label" : "Global"
+       "utf8 label" : "Preview"
       },
       {
-       "id" : "label_global",
+       "id" : "label_code",
        "xtype" : "Label",
        "* pack" : false,
        "$ xns" : "Gtk",
-       "utf8 label" : "Global"
-      }
-     ]
-    },
-    {
-     "* pack" : "pack_start,true,true,0",
-     "xtype" : "ScrolledWindow",
-     "$ xns" : "Gtk",
-     "items" : [
+       "utf8 label" : "Code"
+      },
       {
-       "id" : "view_layout",
-       "xtype" : "Layout",
-       "* pack" : "add",
+       "* pack" : "pack_start,true,true,0",
+       "xtype" : "ScrolledWindow",
        "$ xns" : "Gtk",
        "items" : [
         {
-         "id" : "container",
-         "* pack" : "put,10,10",
-         "xtype" : "HBox",
-         "$ xns" : "Gtk"
+         "id" : "view_layout",
+         "xtype" : "Layout",
+         "* pack" : "add",
+         "$ xns" : "Gtk",
+         "items" : [
+          {
+           "id" : "container",
+           "* pack" : "put,10,10",
+           "xtype" : "HBox",
+           "$ xns" : "Gtk"
+          }
+         ]
         }
        ]
       }
index de26c89..4cd8956 100644 (file)
@@ -13,7 +13,7 @@ public class Xcls_GtkView : Object
         return _GtkView;
     }
     public Xcls_label_preview label_preview;
-    public Xcls_label_global label_global;
+    public Xcls_label_code label_code;
     public Xcls_view_layout view_layout;
     public Xcls_container container;
 
@@ -40,9 +40,6 @@ public class Xcls_GtkView : Object
         var child_0 = new Xcls_Notebook2( _this );
         child_0.ref();
         this.el.pack_start (  child_0.el , true,true,0 );
-        var child_1 = new Xcls_ScrolledWindow5( _this );
-        child_1.ref();
-        this.el.pack_start (  child_1.el , true,true,0 );
 
         //listeners
         this.el.size_allocate.connect( (aloc) => {
@@ -153,8 +150,11 @@ public class Xcls_GtkView : Object
             // set gobject values
             var child_0 = new Xcls_label_preview( _this );
             child_0.ref();
-            var child_1 = new Xcls_label_global( _this );
+            var child_1 = new Xcls_label_code( _this );
             child_1.ref();
+            var child_2 = new Xcls_ScrolledWindow5( _this );
+            child_2.ref();
+            this.el.pack_start (  child_2.el , true,true,0 );
         }
 
         // user defined functions
@@ -172,7 +172,7 @@ public class Xcls_GtkView : Object
         {
             _this = _owner;
             _this.label_preview = this;
-            this.el = new Gtk.Label( "Global" );
+            this.el = new Gtk.Label( "Preview" );
 
             // my vars (dec)
 
@@ -182,7 +182,7 @@ public class Xcls_GtkView : Object
         // user defined functions
     }
 
-    public class Xcls_label_global : Object
+    public class Xcls_label_code : Object
     {
         public Gtk.Label el;
         private Xcls_GtkView  _this;
@@ -191,11 +191,11 @@ public class Xcls_GtkView : Object
             // my vars (def)
 
         // ctor
-        public Xcls_label_global(Xcls_GtkView _owner )
+        public Xcls_label_code(Xcls_GtkView _owner )
         {
             _this = _owner;
-            _this.label_global = this;
-            this.el = new Gtk.Label( "Global" );
+            _this.label_code = this;
+            this.el = new Gtk.Label( "Code" );
 
             // my vars (dec)
 
@@ -205,7 +205,6 @@ public class Xcls_GtkView : Object
         // user defined functions
     }
 
-
     public class Xcls_ScrolledWindow5 : Object
     {
         public Gtk.ScrolledWindow el;
@@ -280,4 +279,5 @@ public class Xcls_GtkView : Object
 
 
 
+
 }