3 Pango = imports.gi.Pango;
4 GLib = imports.gi.GLib;
6 GObject = imports.gi.GObject;
7 GtkSource = imports.gi.GtkSource;
8 WebKit = imports.gi.WebKit;
10 console = imports.console;
11 XObject = imports.XObject.XObject;
12 DialogConfirm=new XObject({
13 xtype: Gtk.MessageDialog,
15 response : function (self, response_id) {
17 print("RESPOSE: " + response_id);
18 if (response_id == -8) { //yes!
20 this.success(); // fixme a delegate
26 //print("RESPOSE: " + response_id);
27 if (response_id == -8) { //yes!
28 print("CALL SUCCES?");
35 delete_event : function (self, event) {
47 title : "Please Confirm d",
48 buttons : Gtk.ButtonsType.YES_NO,
49 message_type : Gtk.MessageType.QUESTION,
51 show : function(msg, success) {
55 this.success = success;
63 //if (!this.el) { this.init(); }
64 //this.success = success;
71 show_all : function() {
82 XObject.cache['/DialogConfirm'] = DialogConfirm;