+ //this.set_from_stock( Gtk.Stock.MEDIA_PAUSE );
+
+ var image = new Gtk.Image();
+ image.set_from_stock(Gtk.Stock.MEDIA_PAUSE,Gtk.IconSize.MENU );
+ this.set_image (image);
+
+ this.label= "Pause Commits";
+ this.always_show_image = true;
+ this.accel_group = null;
+
+ this.activate.connect( () => {
+ statusicon.paused = true;
+ GitMonitor.gitmonitor.stop();
+
+ // this.el.label = status ? 'Resume' : 'Pause';
+ statusicon.set_from_stock( Gtk.Stock.MEDIA_PAUSE );
+
+
+ });
+ // id : 'pause',
+ }
+
+
+ }
+ class MenuItemStartCommits : ImageMenuItem {
+
+ public MenuItemStartCommits()
+ {
+
+ var image = new Gtk.Image();
+ image.set_from_stock(Gtk.Stock.MEDIA_PLAY,Gtk.IconSize.MENU );
+ this.set_image (image);
+ 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.set_from_stock( Gtk.Stock.MEDIA_PLAY );
+
+
+ });