X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=StatusIcon.vala;h=7a2500a2c8830de98d4612220916dd0fd4dfaf85;hp=d6b34d18ac88807d053aa26b91c38e383673dcb0;hb=c245640608475ef3270eb6a48c9af03b274d9996;hpb=1b65514c93e260c86b738acbb13cf8ec2a39d596 diff --git a/StatusIcon.vala b/StatusIcon.vala index d6b34d18..7a2500a2 100644 --- a/StatusIcon.vala +++ b/StatusIcon.vala @@ -195,7 +195,7 @@ public class StatusIconA : StatusIcon { this.remove(m); } foreach(var r in GitRepo.singleton().cache.values ) { - GLib.debug("checking %s for branch = %s", r.name, r.currentBranch.name); + GLib.debug("checking %s for branch = %s", r.name, r.getCurrentBranch().name); if (r.is_master_branch()) { continue; } @@ -306,47 +306,7 @@ public class StatusIconA : StatusIcon { this.activate.connect( () => { this.pullAll(); - /* - GitMonitor.gitmonitor.stop(); - var tr = GitRepo.list(); - - - - for (var i= 0; i< tr.length;i++) { - statusicon.set_from_stock( - i%2 == 0 ? Gtk.Stock.FULLSCREEN : Gtk.Stock.LEAVE_FULLSCREEN ); - - var repo = tr.index(i); - //if (!repo.autocommit()) { - //??? should we ignore ones not on autocommit.. - // continue; - //} - try { - statusicon.set_tooltip_text("pull: " + repo.name); - var str = repo.pull(); - // do not care if it's already in sycn.. - if (Regex.match_simple ("Already up-to-date", str) ) { - continue; - } - var notification = new Notify.Notification( - "Updated " + repo.name, - str, - "dialog-information" - - ); - - notification.set_timeout(20); - notification.show(); - - } catch(Error e) { - print("notification or push errror- probably to many in queue.."); - statusicon.set_from_stock( Gtk.Stock.MEDIA_RECORD ); - print(e.message); - - } - - } - */ + });