StatusIcon.js
authorAlan Knowles <alan@akbkhome.com>
Sat, 30 Mar 2013 06:50:52 +0000 (14:50 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 30 Mar 2013 06:50:52 +0000 (14:50 +0800)
StatusIcon.js

index 00b167f..3345a63 100644 (file)
@@ -180,8 +180,10 @@ var StatusIcon  = new XObject({
                 },
                 {
                     init : function() {
-                        
-                        this.el = new Gtk.ImageMenuItem.from_stock(Gtk.STOCK_SAVE);
+                        this.el = XObject.isSeed ?
+                            new Gtk.ImageMenuItem.from_stock(Gtk.STOCK_SAVE)
+                            : new Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_SAVE, null);
+                         
                         XObject.prototype.init.call(this);
                     },
                     label: 'Update Timesheet',
@@ -201,7 +203,7 @@ var StatusIcon  = new XObject({
                 
                 {
                     init : function() {
-                              this.el = XObject.isSeed ?
+                        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);