sync
[gitlive] / Gitlive.vala
1
2
3 /*
4  valac  --pkg gio-2.0  --pkg posix  --pkg gtk+-3.0 --pkg libnotify --pkg  libwnck-3.0 \
5       Gitlive.vala \
6       Monitor.vala \
7       GitMonitor.vala \
8       Spawn.vala \
9       StatusIcon.vala \
10       GitRepo.vala \
11     xorg_idletime.c \
12     WindowLog.vala \
13     --Xcc=-lXss \
14     --Xcc=-DWNCK_I_KNOW_THIS_IS_UNSTABLE \
15     -o /tmp/Gitlive && /tmp/Gitlive
16
17
18
19 */
20
21
22
23
24
25 static int main (string[] args) {
26     Gtk.init (ref args);
27     
28     GitMonitor.gitlive =  Environment.get_home_dir() + "/gitlive";
29
30     print("GitMonitor.gitlive=" + GitMonitor.gitlive);
31
32     Notify.init("gitlive");
33
34     new StatusIconA();
35     var gm = new GitMonitor();
36
37
38     Timeout.add_full(Priority.LOW, 500, () => {
39         // this should start after we have shown the icon...
40         print("adding GitMonitor.gitlive: " + GitMonitor.gitlive);
41         gm.add(GitMonitor.gitlive);
42         print("gm.start()");
43         gm.start();
44
45         new WindowLog();
46
47         return false;
48
49     });
50
51     Gtk.main ();
52
53     return 0;
54
55 }