[gnome-shell] PopupSwitchMenuItem: don't override switch by creating it twice



commit 6d53d43766ba83642b065ad8637cfb149af096db
Author: Marc-Antoine Perennou <Marc-Antoine Perennou com>
Date:   Fri Jul 8 21:09:10 2011 +0200

    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 <Marc-Antoine Perennou com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=654267

 js/ui/popupMenu.js |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 3d854ef..e67729c 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;
     },
 



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