[gnome-shell/wip/aggregate-menu: 85/101] network: Hide the signal icon in the mobile broadband section



commit c66c9426f7adb361943d29393c99cd4bca311a70
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Apr 29 15:11:14 2013 -0400

    network: Hide the signal icon in the mobile broadband section

 js/ui/status/network.js |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 7fb2518..0924ed6 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -561,9 +561,6 @@ const NMDeviceModem = new Lang.Class({
                 }
             }));
             this._signalQualityId = this.mobileDevice.connect('notify::signal-quality', Lang.bind(this, 
function() {
-                if (this._operatorItem) {
-                    this._operatorItem.setIcon(this._getSignalIcon());
-                }
                 this.emit('icon-changed');
             }));
         }
@@ -594,9 +591,8 @@ const NMDeviceModem = new Lang.Class({
 
         if (this.mobileDevice) {
             // If operator_name is null, just pass the empty string, as the item is hidden anyway
-            this._operatorItem = new PopupMenu.PopupImageMenuItem(this.mobileDevice.operator_name || '',
-                                                                  this._getSignalIcon(),
-                                                                  { reactive: false });
+            this._operatorItem = new PopupMenu.PopupMenuItem(this.mobileDevice.operator_name || '',
+                                                             { style_class: 'popup-status-menu-item' });
             if (!this.mobileDevice.operator_name)
                 this._operatorItem.actor.hide();
             this.section.addMenuItem(this._operatorItem);


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