"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",
"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",
},
{
"label" : "OK",
- "xtype" : "Button",
"* pack" : "add_action_widget,1",
+ "xtype" : "Button",
"$ xns" : "Gtk"
}
]
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) => {
// 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";
}