Gitlive.vala
[gitlive] / Gitlive.vala
1
2
3 /*
4  valac  --pkg gio-2.0  --pkg posix  --pkg gtk+-3.0 --pkg libnotify \
5       Gitlive.vala \
6       Monitor.vala \
7       GitMonitor.vala \
8       Spawn.vala \
9       StatusIcon.vala \
10       GitRepo.vala \
11     -o /tmp/Gitlive
12
13
14
15 */
16
17
18
19
20
21 static int main (string[] args) {
22     Gtk.init (ref args);
23     
24     GitMonitor.gitlive =  Environment.get_home_dir() + "/gitlive";
25
26     Notify.init("gitlive");
27
28     new StatusIconA();
29
30
31     GLib.timeout_add(GLib.PRIORITY_LOW, 500, () => {
32         // this should start after we have shown the icon...
33         GitMonitor.add(GitMonitor.gitlive);
34         GitMonitor.start();
35         
36         // WindowLog.start();
37     });
38
39     Gtk.main ();
40
41     return 0;
42
43 }