X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=jhbuild.js;fp=jhbuild.js;h=b088626b0e23f6aac3bb197e1a39995ca86937de;hp=67d4b27da6b30f23fbe2bd587b4a6e5432cce7d3;hb=ea5a086bc07ad5bae1d61131680c0e8249dfcc6f;hpb=c32c545aeb33da0d36ccb7dd8c0b6bde1114d22b diff --git a/jhbuild.js b/jhbuild.js index 67d4b27..b088626 100755 --- a/jhbuild.js +++ b/jhbuild.js @@ -233,7 +233,7 @@ function spawnlog (cwd, s, outfile, errfile) { GLib.SpawnFlags.DO_NOT_REAP_CHILD + GLib.SpawnFlags.SEARCH_PATH , null, null, ret); - var ctx = GLib.main_loop_new (null, false); + var ctx = new GLib.MailLoop.c_new (null, false); var started = false; GLib.child_watch_add(GLib.PRIORITY_DEFAULT, ret.child_pid, function(pid, status) { @@ -242,7 +242,7 @@ function spawnlog (cwd, s, outfile, errfile) { retval.done = true; if (started) { console.log("Ending LOOP"); - GLib.main_loop_quit(ctx); + ctx.quit(); } }); @@ -317,7 +317,7 @@ function spawnlog (cwd, s, outfile, errfile) { if (!retval.done) { started = true; console.log("STARTING LOOP"); - GLib.main_loop_run(ctx, false); // wait fore exit? + ctx.run(); // wait fore exit? } readstr(out_ch, outfile, 'output'); readstr(err_ch, errfile, 'error');