From: Alan Knowles Date: Tue, 6 May 2014 13:50:25 +0000 (+0800) Subject: StatusIcon.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=b2564ade35b11b5528d1dc5396aca5c3601e9f64 StatusIcon.vala --- diff --git a/StatusIcon.vala b/StatusIcon.vala index ebc618ef..75cd751a 100644 --- a/StatusIcon.vala +++ b/StatusIcon.vala @@ -156,8 +156,6 @@ class StatusIconA : StatusIcon { this.accel_group = null; this.activate.connect( () => { - this.parent.parent.paused = true; - statusicon.paused = true; //GitMonitor.GitMonitor.stop(); @@ -171,7 +169,30 @@ class StatusIconA : StatusIcon { } - + class ImageMenuItemB : ImageMenuItem { + + public ImageMenuItemB() + { + this.set_from_stock( Gtk.STOCK_MEDIA_PLAY ); + this.label= "Start Commits"; + this.always_show_image = true; + this.accel_group = null; + + this.activate.connect( () => { + //GitMonitor.GitMonitor.start(); + statusicon.paused = false; + + // + // this.el.label = status ? 'Resume' : 'Pause'; + statusicon.el.set_from_stock( Gtk.STOCK_MEDIA_PAUSE ); + + + }) + // id : 'pause', + } + + + } }