Gitlive.vala
[gitlive] / Gitlive.vala
1
2
3 /*
4  valac  --pkg gio-2.0  --pkg posix  --pkg gtk+-3.0 
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 =  GLib.get_home_dir() + "/gitlive";
25
26     Notify.init("gitlive");
27
28     StatusIcon.init();
29
30
31
32
33     MainLoop loop = new MainLoop ();
34     print("starting");
35     var m = new Monitor();
36     
37     m.add("/home/alan/gitlive");
38     m.start();
39     loop.run ();
40
41     Gtk.main ();
42
43     return 0;
44
45 }