dbgenerate.js
[app.Builder.js] / Builder / StandardErrorDialog.js
1 Gtk = imports.gi.Gtk;
2 Gdk = imports.gi.Gdk;
3 Pango = imports.gi.Pango;
4 GLib = imports.gi.GLib;
5 Gio = imports.gi.Gio;
6 GObject = imports.gi.GObject;
7 GtkSource = imports.gi.GtkSource;
8 WebKit = imports.gi.WebKit;
9 Vte = imports.gi.Vte;
10 GtkClutter = imports.gi.GtkClutter;
11 console = imports.console;
12 XObject = imports.XObject.XObject;
13 StandardErrorDialog=new XObject({
14     xtype: Gtk.MessageDialog,
15     buttons : Gtk.ButtonsType.OK,
16     modal : true,
17     message_type : Gtk.MessageType.ERROR,
18     text : "fixme",
19     use_markup : true,
20     show : function(msg) {
21          if (!this.el) {
22                 this.init();
23             }
24             this.el.text =  msg;
25             this.el.show_all();
26     },
27     listeners : {
28         delete_event : function (self, event) {
29             this.el.hide();
30             return true;
31         },
32         response : function (self, response_id) {
33            this.el.hide();
34         }
35     }
36 });
37 StandardErrorDialog.init();
38 XObject.cache['/StandardErrorDialog'] = StandardErrorDialog;