try {
u.start("replace");
} catch (DBus.Error e) {
- message("%s", e.message);
+ new MessageDialog(this, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE, "%s", e.message).run();
}
}
try {
u.stop("replace");
} catch (DBus.Error e) {
- message("%s", e.message);
+ new MessageDialog(this, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE, "%s", e.message).run();
}
}
try {
u.reload("replace");
} catch (DBus.Error e) {
- message("%s", e.message);
+ new MessageDialog(this, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE, "%s", e.message).run();
}
}
try {
u.restart("replace");
} catch (DBus.Error e) {
- message("%s", e.message);
+ new MessageDialog(this, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE, "%s", e.message).run();
}
}
try {
j.cancel();
} catch (DBus.Error e) {
- message("%s", e.message);
+ new MessageDialog(this, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE, "%s", e.message).run();
}
}
try {
manager.reload();
} catch (DBus.Error e) {
- message("%s", e.message);
+ new MessageDialog(this, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE, "%s", e.message).run();
}
}
unit_type_combo_box.set_active(8);
} catch (DBus.Error e) {
- message("%s", e.message);
+ new MessageDialog(this, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE, "%s", e.message).run();
}
}
}
Gtk.main();
} catch (DBus.Error e) {
- message("%s", e.message);
+ new MessageDialog(null, 0, MessageType.ERROR, ButtonsType.CLOSE, "%s", e.message).run();
} catch (GLib.Error e) {
- message("%s", e.message);
+ new MessageDialog(null, 0, MessageType.ERROR, ButtonsType.CLOSE, "%s", e.message).run();
}
return 0;