Spawn.vala
[gitlive] / Spawn.vala
index 811b96f..f19b493 100644 (file)
@@ -427,12 +427,12 @@ public class Spawn : Object
                     }
                     //_this[prop] += x.str_return;
                     if (_this.debug) {
-                        print(prop + ':' + x.str_return.replace(/\n/, ''));
+                        stdout.print("%s : %s", prop , str_return);
                     }
                     if (this.async) {
                         try {
-                            if (imports.gi.Gtk.events_pending()) {
-                                imports.gi.Gtk.main_iteration();
+                            if ( Gtk.events_pending()) {
+                                 Gtk.main_iteration();
                             }
                         } catch(Error e) {