From 68aed27734f73ad2ff9bf3d03eb1fd72d36b6105 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 12 Nov 2010 07:01:30 +0800 Subject: [PATCH] Builder/DialogConfirm.js --- Builder/DialogConfirm.js | 46 ---------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 Builder/DialogConfirm.js diff --git a/Builder/DialogConfirm.js b/Builder/DialogConfirm.js deleted file mode 100644 index c346270b8..000000000 --- a/Builder/DialogConfirm.js +++ /dev/null @@ -1,46 +0,0 @@ -Gtk = imports.gi.Gtk; -Gdk = imports.gi.Gdk; -Pango = imports.gi.Pango; -GLib = imports.gi.GLib; -Gio = imports.gi.Gio; -GObject = imports.gi.GObject; -GtkSource = imports.gi.GtkSource; -WebKit = imports.gi.WebKit; -Vte = imports.gi.Vte; -GtkClutter = imports.gi.GtkClutter; -console = imports.console; -XObject = imports.XObject.XObject; -DialogConfirm=new XObject({ - xtype: Gtk.MessageDialog, - show : function(msg, success) { - if (!this.el) { - this.init(); - } - this.success = success; - this.el.text = msg; - this.el.show_all(); - - }, - buttons : Gtk.ButtonsType.YES_NO, - title : "Please Confirm", - message_type : Gtk.MessageType.QUESTION, - use_markup : true, - text : "-", - modal : true, - listeners : { - 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; - } - } -}); -DialogConfirm.init(); -XObject.cache['/DialogConfirm'] = DialogConfirm; -- 2.39.2