},
{
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',
{
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);