GtkSource = imports.gi.GtkSource;
WebKit = imports.gi.WebKit;
Vte = imports.gi.Vte;
+GtkClutter = imports.gi.GtkClutter;
+Gdl = imports.gi.Gdl;
console = imports.console;
XObject = imports.XObject.XObject;
DialogConfirm=new XObject({
message_type : Gtk.MessageType.QUESTION,
use_markup : true,
text : "-",
+ modal : true,
listeners : {
- "destroy_event":function (self, event) {
- this.el.hide();
- return true;
- },
- "response":function (self, response_id) {
- if (response_id > 0) {
+ response : function (self, response_id) {
+ this.el.hide();
+ print("RESPOSE: " + response_id);
+ if (response_id == -8) { //yes!
+ print("CALL SUCCES?")
this.success();
}
+ },
+ delete_event : function (self, event) {
+ this.el.hide();
+ return true;
}
}
});