src/Builder4/DialogPluginWebkit.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 09:03:09 +0000 (17:03 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 09:03:09 +0000 (17:03 +0800)
src/Builder4/DialogPluginWebkit.vala

src/Builder4/DialogPluginWebkit.bjs
src/Builder4/DialogPluginWebkit.vala

index 769fd2b..88759fd 100644 (file)
@@ -12,8 +12,8 @@
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n "
    },
    "string tmpjs" : "",
-   "utf8 title" : "Add / Edit Component",
    "id" : "DialogPluginWebkit",
+   "utf8 title" : "Add / Edit Component",
    "gint default_height" : 500,
    "gboolean deletable" : true,
    "xtype" : "Dialog",
    "string result_json" : "",
    "items" : [
     {
-     "xtype" : "VBox",
+     "xtype" : "Box",
      "$ pack" : "get_content_area().add",
      "gboolean homogeneous" : false,
      "$ xns" : "Gtk",
      "items" : [
       {
        "* init" : "  this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n \n",
-       "xtype" : "ScrolledWindow",
        "* pack" : "pack_start,false,true,3",
+       "xtype" : "ScrolledWindow",
        "gboolean expand" : true,
        "$ xns" : "Gtk",
        "items" : [
     },
     {
      "label" : "Reload",
-     "* pack" : "add_action_widget,3",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,3",
      "$ xns" : "Gtk"
     },
     {
      "label" : "Cancel",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,0",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     },
     {
      "label" : "OK",
-     "* pack" : "add_action_widget,1",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,1",
      "$ xns" : "Gtk"
     }
    ]
index 98d3fd7..8913a25 100644 (file)
@@ -32,7 +32,7 @@ public class Xcls_DialogPluginWebkit : Object
         this.el.default_width = 750;
         this.el.deletable = true;
         this.el.modal = true;
-        var child_0 = new Xcls_VBox2( _this );
+        var child_0 = new Xcls_Box2( _this );
         child_0.ref();
         this.el.get_content_area().add (  child_0.el  );
         var child_1 = new Xcls_Button5( _this );
@@ -185,23 +185,24 @@ public class Xcls_DialogPluginWebkit : Object
     
     
     }
-    public class Xcls_VBox2 : Object 
+    public class Xcls_Box2 : Object 
     {
-        public Gtk.VBox el;
+        public Gtk.Box el;
         private Xcls_DialogPluginWebkit  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_VBox2(Xcls_DialogPluginWebkit _owner )
+        public Xcls_Box2(Xcls_DialogPluginWebkit _owner )
         {
             _this = _owner;
-            this.el = new Gtk.VBox( false, 0 );
+            this.el = new Gtk.Box( null, 0 );
 
             // my vars (dec)
 
             // set gobject values
+            this.el.homogeneous = false;
             var child_0 = new Xcls_ScrolledWindow3( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,true,3 );