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



commit 3ea1e4b8a0a9024f2aa21e4fd97ea7aac568882d
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 |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index bfd3680..ece0d17 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -597,11 +597,6 @@ const NMDeviceModem = new Lang.Class({
                         this._operatorItem.actor.hide();
                 }
             }));
-            this._signalQualityId = this.mobileDevice.connect('notify::signal-quality', Lang.bind(this, 
function() {
-                if (this._operatorItem) {
-                    this._operatorItem.setIcon(this._getSignalIcon());
-                }
-            }));
         }
 
         this.parent(client, device, connections);
@@ -630,9 +625,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]