From b2564ade35b11b5528d1dc5396aca5c3601e9f64 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 6 May 2014 21:50:25 +0800 Subject: [PATCH] StatusIcon.vala --- StatusIcon.vala | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) 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', + } + + + } } -- 2.39.2