- {
- init : function() {
- this.el = XObject.isSeed ?
- new Gtk.ImageMenuItem.from_stock(Gtk.STOCK_FULLSCREEN)
- : new Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_FULLSCREEN, null);
-
- XObject.prototype.init.call(this);
- },
- label: 'Pull (Refresh) All',
- always_show_image : true,
- accel_group : null,
- //label: 'Pause',
- pack: 'append',
- listeners : {
- activate : function () {
- imports.GitMonitor.GitMonitor.stop();
-
-
- var tr = imports.Scm.Repo.Repo.list();
- for (var i= 0; i< tr.length;i++) {
- this.parent.parent.el.set_from_stock( i%2 ? Gtk.STOCK_FULLSCREEN : Gtk.STOCK_LEAVE_FULLSCREEN );
+ 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 );
+
+
+ });
+ }
+
+
+ }
+
+
+ class MenuItemPullAll : ImageMenuItem {
+
+ public MenuItemPullAll()
+ {
+
+ var image = new Gtk.Image();
+ image.set_from_stock(Gtk.Stock.FULLSCREEN,Gtk.IconSize.MENU );
+ this.set_image (image);
+ this.label= "Pull (Refresh) All";
+ this.always_show_image = true;
+ this.accel_group = null;
+
+ 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 );