popupMenu: Use a StWidget instead of a Separator

We don't use the gradient part of a Separator, so we can
just use a StWidget instead and shut up some warnings
This commit is contained in:
Carlos Soriano 2015-02-20 10:35:30 +01:00
parent e317bfdab7
commit 43ada376f8

View File

@ -264,8 +264,8 @@ const PopupSeparatorMenuItem = new Lang.Class({
Lang.bind(this, this._syncVisibility)); Lang.bind(this, this._syncVisibility));
this._syncVisibility(); this._syncVisibility();
this._separator = new Separator.HorizontalSeparator({ style_class: 'popup-separator-menu-item' }); this._separator = new St.Widget({ style_class: 'popup-separator-menu-item' });
this.actor.add(this._separator.actor, { expand: true }); this.actor.add(this._separator, { expand: true });
}, },
_syncVisibility: function() { _syncVisibility: function() {