window-list: Don't recreate icons on theme changes
All icons use `StIcon`, which already updates itself correctly on icon theme changes. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/337>
This commit is contained in:
@@ -125,10 +125,6 @@ class WindowTitle extends St.BoxLayout {
|
||||
this.label_actor.clutter_text.single_line_mode = true;
|
||||
this.add_child(this.label_actor);
|
||||
|
||||
this._textureCache = St.TextureCache.get_default();
|
||||
this._textureCache.connectObject('icon-theme-changed',
|
||||
() => this._updateIcon(), this);
|
||||
|
||||
this._metaWindow.connectObject(
|
||||
'notify::wm-class',
|
||||
() => this._updateIcon(), GObject.ConnectFlags.AFTER,
|
||||
@@ -591,11 +587,6 @@ class AppButton extends BaseButton {
|
||||
this._appContextMenu.actor.hide();
|
||||
Main.uiGroup.add_child(this._appContextMenu.actor);
|
||||
|
||||
this._textureCache = St.TextureCache.get_default();
|
||||
this._textureCache.connectObject('icon-theme-changed', () => {
|
||||
this._icon.child = app.create_icon_texture(ICON_TEXTURE_SIZE);
|
||||
}, this);
|
||||
|
||||
this.app.connectObject('windows-changed',
|
||||
() => this._windowsChanged(), this);
|
||||
this._windowsChanged();
|
||||
|
||||
Reference in New Issue
Block a user