From 6d53d43766ba83642b065ad8637cfb149af096db Mon Sep 17 00:00:00 2001 From: Marc-Antoine Perennou Date: Fri, 8 Jul 2011 21:09:10 +0200 Subject: [PATCH] PopupSwitchMenuItem: don't override switch by creating it twice Due to an accidental addition line in commit c8670819, all switches in popup menus accidentally gave the appearance that they were turned off. Signed-off-by: Marc-Antoine Perennou https://bugzilla.gnome.org/show_bug.cgi?id=654267 --- js/ui/popupMenu.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 3d854ef7d..e67729cb5 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -711,7 +711,6 @@ PopupSwitchMenuItem.prototype = { this._statusLabel = new St.Label({ text: '', style_class: 'popup-inactive-menu-item' }); - this._switch = new Switch(false); this._statusBin.child = this._switch.actor; },