projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MergeBranch.bjs
[gitlive]
/
Gitlive.vala
diff --git
a/Gitlive.vala
b/Gitlive.vala
index
424565b
..
e3ded34
100644
(file)
--- a/
Gitlive.vala
+++ b/
Gitlive.vala
@@
-1,14
+1,18
@@
/*
/*
- valac --pkg gio-2.0 --pkg posix --pkg gtk+-3.0
- Git
L
ive.vala \
+ valac --pkg gio-2.0 --pkg posix --pkg gtk+-3.0
--pkg libnotify --pkg libwnck-3.0 \
+ Git
l
ive.vala \
Monitor.vala \
GitMonitor.vala \
Spawn.vala \
StatusIcon.vala \
GitRepo.vala \
Monitor.vala \
GitMonitor.vala \
Spawn.vala \
StatusIcon.vala \
GitRepo.vala \
- -o /tmp/Gitlive
+ xorg_idletime.c \
+ WindowLog.vala \
+ --Xcc=-lXss \
+ --Xcc=-DWNCK_I_KNOW_THIS_IS_UNSTABLE \
+ -o /tmp/Gitlive && /tmp/Gitlive
@@
-19,24
+23,46
@@
static int main (string[] args) {
static int main (string[] args) {
+
+ //GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL);
+
+ GLib.Log.set_handler(null,
+ GLib.LogLevelFlags.LEVEL_DEBUG | GLib.LogLevelFlags.LEVEL_WARNING | GLib.LogLevelFlags.LEVEL_INFO,
+ (dom, lvl, msg) => {
+
+
+ // should we debug..
+
+
+ print("%s\n", msg);
+ }
+ );
+
+
Gtk.init (ref args);
Gtk.init (ref args);
- GitMonitor.gitlive = GLib.get_home_dir() + "/gitlive";
+ GitMonitor.gitlive = Environment.get_home_dir() + "/gitlive";
+
+ print("GitMonitor.gitlive=" + GitMonitor.gitlive);
Notify.init("gitlive");
Notify.init("gitlive");
- StatusIcon.init();
+ new StatusIconA();
+ var gm = new GitMonitor();
+ Timeout.add_full(Priority.LOW, 500, () => {
+ // this should start after we have shown the icon...
+ print("adding GitMonitor.gitlive: " + GitMonitor.gitlive);
+ gm.add(GitMonitor.gitlive);
+ print("gm.start()");
+ gm.start();
+ new WindowLog();
- MainLoop loop = new MainLoop ();
- print("starting");
- var m = new Monitor();
-
- m.add("/home/alan/gitlive");
- m.start();
- loop.run ();
+ return false;
+
+ });
Gtk.main ();
Gtk.main ();