diff --git a/js/ui/panelMenu.js b/js/ui/panelMenu.js index 8bad21d75..118ed39ee 100644 --- a/js/ui/panelMenu.js +++ b/js/ui/panelMenu.js @@ -251,9 +251,8 @@ const SystemIndicator = new Lang.Class({ }); }, - addIndicator: function(gicon) { - let icon = new St.Icon({ gicon: gicon, - style_class: 'system-status-icon' }); + _addIndicator: function() { + let icon = new St.Icon({ style_class: 'system-status-icon' }); this.indicators.add_actor(icon); icon.connect('notify::visible', Lang.bind(this, this._syncIndicatorsVisible)); this._syncIndicatorsVisible(); diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js index 29f8ad811..94ce0c4c0 100644 --- a/js/ui/status/bluetooth.js +++ b/js/ui/status/bluetooth.js @@ -20,7 +20,8 @@ const Indicator = new Lang.Class({ _init: function() { this.parent(); - this._indicator = this.addIndicator(new Gio.ThemedIcon({ name: 'bluetooth-active-symbolic' })); + this._indicator = this._addIndicator(); + this._indicator.icon_name = 'bluetooth-active-symbolic'; // The Bluetooth menu only appears when Bluetooth is in use, // so just statically build it with a "Turn Off" menu item. diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 9be93b150..3ced9ca4e 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1157,8 +1157,8 @@ const NMApplet = new Lang.Class({ _init: function() { this.parent(); - this._primaryIndicator = this.addIndicator(null); - this._vpnIndicator = this.addIndicator(null); + this._primaryIndicator = this._addIndicator(); + this._vpnIndicator = this._addIndicator(); // Device types this._dtypes = { }; diff --git a/js/ui/status/power.js b/js/ui/status/power.js index bfbc40d80..2994f099f 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -30,7 +30,7 @@ const Indicator = new Lang.Class({ _init: function() { this.parent(); - this._indicator = this.addIndicator(null); + this._indicator = this._addIndicator(); this._proxy = new PowerManagerProxy(Gio.DBus.session, BUS_NAME, OBJECT_PATH, Lang.bind(this, function(proxy, error) { diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js index 5a9fed964..b461585e7 100644 --- a/js/ui/status/volume.js +++ b/js/ui/status/volume.js @@ -301,7 +301,7 @@ const Indicator = new Lang.Class({ _init: function() { this.parent(); - this._primaryIndicator = this.addIndicator(null); + this._primaryIndicator = this._addIndicator(); this._control = getMixerControl(); this._volumeMenu = new VolumeMenu(this._control);