jhbuild.js
[gnome.introspection-doc-generator] / jhbuild.js
index befe2e2..b088626 100755 (executable)
@@ -8,11 +8,13 @@ GLib= imports.gi.GLib;
 Gio = imports.gi.Gio;
 
 
-File = imports.file.File;
+File = imports.File.File;
 console = imports.console.console;
 
+Seed.include('Date.js');
  
-Date = imports.Date.Date;
+//DateExtra = imports.DateExtra.DateExtra;
+
  
 
 // these should come from args
@@ -231,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) {
@@ -240,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();
         }
         
     });
@@ -315,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');