2 valac --pkg gio-2.0 --pkg posix --pkg gtk+-3.0 --pkg libnotify --pkg gtksourceview-3.0 --pkg libwnck-3.0 \
3 /tmp/StandardErrorDialog.vala -o /tmp/StandardErrorDialog
8 static int main (string[] args) {
10 new Xcls_StandardErrorDialog();
11 StandardErrorDialog.show_all();
18 public static Xcls_StandardErrorDialog StandardErrorDialog;
20 public class Xcls_StandardErrorDialog : Object
22 public Gtk.MessageDialog el;
23 private Xcls_StandardErrorDialog _this;
25 public static Xcls_StandardErrorDialog singleton()
27 if (StandardErrorDialog == null) {
28 StandardErrorDialog= new Xcls_StandardErrorDialog();
30 return StandardErrorDialog;
36 public Xcls_StandardErrorDialog()
39 this.el = new Gtk.MessageDialog( null, Gtk.DialogFlags.MODAL, Gtk.MessageType.ERROR, Gtk.ButtonsType.OK, "fixme" );
45 this.el.use_markup = true;
48 this.el.delete_event.connect( (self, event) => {
54 this.el.response.connect( (self, response_id) => {
59 // userdefined functions
60 public void show (Gtk.Window win, string msg) {
62 this.el.set_transient_for(win);
68 // skip |xns - no return type