src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 10:37:06 +0000 (18:37 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 10:37:06 +0000 (18:37 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index ea2eb5c..b792e4d 100644 (file)
    "# string ptype" : "\"\"",
    "# string key" : "\"\"",
    "* pack" : "add",
-   "xtype" : "VBox",
+   "xtype" : "Box",
    "|   void show" : "(JsRender.JsRender file, JsRender.Node node, string ptype, string key)\n{\n    this.ptype = ptype;\n    this.key  = key;\n    this.node = node;\n    this.file = file;\n    \n   string val = \"\";\n    // find the text for the node..\n    if (ptype == \"listener\") {\n        val = node.listeners.get(key);\n    \n    } else {\n        val = node.props.get(key);\n    }\n    this.view.load(val);\n    this.key_edit.el.text = key;    \n\n}",
    "# JsRender.JsRender file" : "null",
    "# bool pos" : false,
    "string id" : "Editor",
    "# bool dirty" : false,
    "$ xns" : "Gtk",
+   "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
    "@ void save" : "()",
    "$ homogeneous" : false,
    "# JsRender.Node node" : "null",
    "items" : [
     {
      "* pack" : "pack_start,false,true",
-     "xtype" : "HBox",
+     "xtype" : "Box",
      "$ xns" : "Gtk",
+     "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
      "$ homogeneous" : false,
      "items" : [
       {
index 2a5c21e..65162b0 100644 (file)
@@ -2,7 +2,7 @@ static Editor  _Editor;
 
 public class Editor : Object
 {
-    public Gtk.VBox el;
+    public Gtk.Box el;
     private Editor  _this;
 
     public static Editor singleton()
@@ -35,7 +35,7 @@ public class Editor : Object
     public Editor()
     {
         _this = this;
-        this.el = new Gtk.VBox( false, 0 );
+        this.el = new Gtk.Box( Gtk.Orientation.VERTICAL, 0 );
 
         // my vars (dec)
         this.window = null;
@@ -48,7 +48,8 @@ public class Editor : Object
         this.node = null;
 
         // set gobject values
-        var child_0 = new Xcls_HBox2( _this );
+        this.el.homogeneous = false;
+        var child_0 = new Xcls_Box2( _this );
         child_0.ref();
         this.el.pack_start (  child_0.el , false,true );
         var child_1 = new Xcls_RightEditor( _this );
@@ -120,23 +121,24 @@ public class Editor : Object
         this.key_edit.el.text = key;    
     
     }
-    public class Xcls_HBox2 : Object
+    public class Xcls_Box2 : Object
     {
-        public Gtk.HBox el;
+        public Gtk.Box el;
         private Editor  _this;
 
 
             // my vars (def)
 
         // ctor
-        public Xcls_HBox2(Editor _owner )
+        public Xcls_Box2(Editor _owner )
         {
             _this = _owner;
-            this.el = new Gtk.HBox( false, 0 );
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
 
             // my vars (dec)
 
             // set gobject values
+            this.el.homogeneous = false;
             var child_0 = new Xcls_save_button( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false );