panelMenu: Remove the gicon parameter from addIndicator, and make private
There's only two uses of the parameter left, which can easily be added as a separate line below. Since it's really a private interface meant for the indicators, make it private as well so external users are less likely to use it. https://bugzilla.gnome.org/show_bug.cgi?id=705845
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user