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;
12 console = imports.console;
13 XObject = imports.XObject.XObject;
14 DialogConfirm=new XObject({
15 xtype: Gtk.MessageDialog,
16 show : function(msg, success) {
20 this.success = success;
25 buttons : Gtk.ButtonsType.YES_NO,
26 title : "Please Confirm",
27 message_type : Gtk.MessageType.QUESTION,
32 response : function (self, response_id) {
34 print("RESPOSE: " + response_id);
35 if (response_id == -8) { //yes!
40 delete_event : function (self, event) {
47 XObject.cache['/DialogConfirm'] = DialogConfirm;