From: Alan Knowles Date: Tue, 6 May 2014 13:52:46 +0000 (+0800) Subject: StatusIcon.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=d761c10c7f140828d83da8895f08faf7263570f1 StatusIcon.vala --- diff --git a/StatusIcon.vala b/StatusIcon.vala index fcad9275..ca7368be 100644 --- a/StatusIcon.vala +++ b/StatusIcon.vala @@ -194,53 +194,9 @@ class StatusIconA : StatusIcon { } } +} - - items : [ - { - xtype: Gtk.Menu, - id : 'menu', - pack: false, - items : [ - { - - //label: 'Pause', - pack: 'append', - listeners : { - activate : function () { - this.parent.parent.paused = true; - imports.GitMonitor.GitMonitor.stop(); - // this.el.label = status ? 'Resume' : 'Pause'; - this.parent.parent.el.set_from_stock( Gtk.STOCK_MEDIA_PAUSE ); - - } - } - }, - - { - init : function() { - this.el = XObject.isSeed ? - new Gtk.ImageMenuItem.from_stock(Gtk.STOCK_MEDIA_PLAY) - : new Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_MEDIA_PLAY, null); - XObject.prototype.init.call(this); - }, - label: 'Resume Commits', - always_show_image : true, - accel_group : null, - id : 'resume', - //label: 'Pause', - pack: 'append', - listeners : { - activate : function () { - this.parent.parent.paused = false; - imports.GitMonitor.GitMonitor.start(); - //var status = this.el.label == 'Pause' ? 1 : 0 - // this.el.label = status ? 'Resume' : 'Pause'; - - - } - } - }, + /* { init : function() {