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,
14 show : function(msg, success) {
18 this.success = success;
23 buttons : Gtk.ButtonsType.YES_NO,
24 title : "Please Confirm",
25 message_type : Gtk.MessageType.QUESTION,
30 "response":function (self, response_id) {
32 print("RESPOSE: " + response_id);
33 if (response_id == -8) { //yes!
38 "delete_event":function (self, event) {
45 XObject.cache['/DialogConfirm'] = DialogConfirm;