+/// # valac --pkg gio-2.0 --pkg gtk+-3.0 --pkg posix Spawn.vala -o /tmp/Spawn
using GLib;
+using Gtk;
// compile valac
-/// # valac --pkg gio-2.0 --pkg posix Spawn.vala -o /tmp/Spawn
///using Gee; // for array list?
}
- bool ctx = false; // the mainloop ctx.
+ MainLoop ctx = null; // the mainloop ctx.
/**
* @property output {String} resulting output
Process.close_pid(this.pid);
this.pid = -1;
- if (this.ctx) {
+ if (this.ctx != null) {
this.ctx.quit();
+ this.ctx = null;
}
this.tidyup();
//print("DONE TIDYUP");
this.stderr += buffer;
}
//_this[prop] += x.str_return;
- if (this.debug) {
- stdout.print("%s : %s", prop , str_return);
+ if (this.cfg.debug) {
+ stdout.printf("%s : %s", prop , str_return);
}
- if (this.async) {
+ if (this.cfg.async) {
try {
if ( Gtk.events_pending()) {
Gtk.main_iteration();