ctrlAltTab: Fix usage of bind_cairo_surface_property
This updates the use of bind_cairo_surface_property for the changes
from d7cb2eeebc
. Now this function returns a StImageContent and not
an Actor like the following code expects, so wrap it in a StIcon.
Also the function lost its size argument.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1718>
This commit is contained in:
parent
99dd5ece55
commit
b853316498
@ -93,9 +93,10 @@ var CtrlAltTabManager = class CtrlAltTabManager {
|
|||||||
if (app) {
|
if (app) {
|
||||||
icon = app.create_icon_texture(POPUP_APPICON_SIZE);
|
icon = app.create_icon_texture(POPUP_APPICON_SIZE);
|
||||||
} else {
|
} else {
|
||||||
icon = textureCache.bind_cairo_surface_property(windows[i],
|
icon = new St.Icon({
|
||||||
'icon',
|
gicon: textureCache.bind_cairo_surface_property(windows[i], 'icon'),
|
||||||
POPUP_APPICON_SIZE);
|
icon_size: POPUP_APPICON_SIZE,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user