From 43ada376f8502dd2976597eb04cfe425bf203588 Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Fri, 20 Feb 2015 10:35:30 +0100 Subject: [PATCH] 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 --- js/ui/popupMenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 3baf71fc5..ffa78e5ce 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -264,8 +264,8 @@ const PopupSeparatorMenuItem = new Lang.Class({ Lang.bind(this, this._syncVisibility)); this._syncVisibility(); - this._separator = new Separator.HorizontalSeparator({ style_class: 'popup-separator-menu-item' }); - this.actor.add(this._separator.actor, { expand: true }); + this._separator = new St.Widget({ style_class: 'popup-separator-menu-item' }); + this.actor.add(this._separator, { expand: true }); }, _syncVisibility: function() {