From 06ba64517f7acb0cfbace1f0ed35c9dd62c0b2bd Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 10 May 2014 19:14:24 +0800 Subject: [PATCH] Gitlive.vala --- Gitlive.vala | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Gitlive.vala b/Gitlive.vala index 424565b9..2d2ad7bc 100644 --- a/Gitlive.vala +++ b/Gitlive.vala @@ -28,15 +28,13 @@ static int main (string[] args) { StatusIcon.init(); - - - MainLoop loop = new MainLoop (); - print("starting"); - var m = new Monitor(); - - m.add("/home/alan/gitlive"); - m.start(); - loop.run (); + GLib.timeout_add(GLib.PRIORITY_LOW, 500, () => { + // this should start after we have shown the icon... + GitMonitor.add(GitMonitor.gitlive); + GitMonitor.start(); + + // WindowLog.start(); + }); Gtk.main (); -- 2.39.2