[gnome-shell/wip/sass: 2/3] popupMenu: Use a StWidget instead of a Separator
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/sass: 2/3] popupMenu: Use a StWidget instead of a Separator
- Date: Fri, 20 Feb 2015 09:40:20 +0000 (UTC)
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]