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 GtkClutter = imports.gi.GtkClutter;
11 console = imports.console;
12 XObject = imports.XObject.XObject;
13 DialogConfirm=new XObject({
14 xtype: Gtk.MessageDialog,
15 show : function(msg, success) {
19 this.success = success;
24 buttons : Gtk.ButtonsType.YES_NO,
25 title : "Please Confirm",
26 message_type : Gtk.MessageType.QUESTION,
31 response : function (self, response_id) {
33 print("RESPOSE: " + response_id);
34 if (response_id == -8) { //yes!
39 delete_event : function (self, event) {
46 XObject.cache['/DialogConfirm'] = DialogConfirm;