src/Builder4/DialogPluginWebkit.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 16 Apr 2015 10:53:02 +0000 (18:53 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 16 Apr 2015 10:53:02 +0000 (18:53 +0800)
src/Builder4/DialogPluginWebkit.vala

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

index 888770b..1dbb2d0 100644 (file)
@@ -11,8 +11,8 @@
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n "
    },
    "string tmpjs" : "",
-   "id" : "DialogPluginWebkit",
    "utf8 title" : "Add / Edit Component",
+   "id" : "DialogPluginWebkit",
    "gint default_height" : 500,
    "gboolean deletable" : true,
    "xtype" : "Dialog",
@@ -29,8 +29,8 @@
      "items" : [
       {
        "* init" : "  this.el.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n \n",
-       "* pack" : "pack_start,false,true,3",
        "xtype" : "ScrolledWindow",
+       "* pack" : "pack_start,false,true,3",
        "gboolean expand" : true,
        "$ xns" : "Gtk",
        "items" : [
       }
      ]
     },
+    {
+     "label" : "Cancel",
+     "* pack" : "add_action_widget,0",
+     "xtype" : "Button",
+     "$ xns" : "Gtk"
+    },
     {
      "label" : "Cancel",
      "xtype" : "Button",
@@ -56,8 +62,8 @@
     },
     {
      "label" : "OK",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,1",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     }
    ]
index 84828a5..203d09b 100644 (file)
@@ -39,7 +39,10 @@ public class Xcls_DialogPluginWebkit : Object
         this.el.add_action_widget (  child_1.el , 0 );
         var child_2 = new Xcls_Button6( _this );
         child_2.ref();
-        this.el.add_action_widget (  child_2.el , 1 );
+        this.el.add_action_widget (  child_2.el , 0 );
+        var child_3 = new Xcls_Button7( _this );
+        child_3.ref();
+        this.el.add_action_widget (  child_3.el , 1 );
 
         // listeners 
         this.el.delete_event.connect( (self, event) => {
@@ -330,6 +333,28 @@ public class Xcls_DialogPluginWebkit : Object
 
             // my vars (dec)
 
+            // set gobject values
+            this.el.label = "Cancel";
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_Button7 : Object 
+    {
+        public Gtk.Button el;
+        private Xcls_DialogPluginWebkit  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_Button7(Xcls_DialogPluginWebkit _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Button();
+
+            // my vars (dec)
+
             // set gobject values
             this.el.label = "OK";
         }