[gnome-shell/wip/sass: 2/3] popupMenu: Use a StWidget instead of a Separator



commit 2919cdc96ff94af1f3cffbb94c8fef16d8804d89
Author: Carlos Soriano <csoriano gnome org>
Date:   Fri Feb 20 10:35:30 2015 +0100

    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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 3baf71f..ffa78e5 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() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]