X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=blobdiff_plain;f=Builder4%2FStandardErrorDialog.js;h=c2d92a688e85cc15ad526c9f690639c276c44448;hp=a12c6d5beae2d74751552525c3cbb91ad606b90d;hb=2357117f2dbfda5d1282c5cc730534781e244d7e;hpb=0d1fa455e0b79452e0d74c1a280b3a23e3432f74 diff --git a/Builder4/StandardErrorDialog.js b/Builder4/StandardErrorDialog.js index a12c6d5be..c2d92a688 100644 --- a/Builder4/StandardErrorDialog.js +++ b/Builder4/StandardErrorDialog.js @@ -11,26 +11,27 @@ console = imports.console; XObject = imports.XObject.XObject; StandardErrorDialog=new XObject({ xtype: Gtk.MessageDialog, - buttons : Gtk.ButtonsType.OK, - modal : true, - message_type : Gtk.MessageType.ERROR, - text : "fixme", - use_markup : true, - show : function(msg) { - if (!this.el) { - this.init(); - } - this.el.text = msg; - this.el.show_all(); - }, listeners : { - delete_event : function (self, event) { + delete_event : (self, event) => { this.el.hide(); return true; }, - response : function (self, response_id) { + response : (self, response_id) => { this.el.hide(); } + }, + text : "fixme", + buttons : Gtk.ButtonsType.OK, + message_type : Gtk.MessageType.ERROR, + modal : true, + use_markup : true, + 'void:show' : (string msg) { + + this.el.text = msg; + this.el.show_all(); + }, + 'void:show_all' : () { + this.show("TEST"); } }); StandardErrorDialog.init();