[gnome-shell/gnome-3-38] ctrlAltTab: Fix usage of bind_cairo_surface_property
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-38] ctrlAltTab: Fix usage of bind_cairo_surface_property
- Date: Mon, 15 Mar 2021 19:43:48 +0000 (UTC)
commit 302f639cc1af9f48246b68f624d6173e6796767d
Author: Sebastian Keller <skeller gnome org>
Date: Fri Feb 26 00:00:06 2021 +0100
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>
js/ui/ctrlAltTab.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/ctrlAltTab.js b/js/ui/ctrlAltTab.js
index 46c2a7bf0b..fbc7a0f5fc 100644
--- a/js/ui/ctrlAltTab.js
+++ b/js/ui/ctrlAltTab.js
@@ -93,9 +93,10 @@ var CtrlAltTabManager = class CtrlAltTabManager {
if (app) {
icon = app.create_icon_texture(POPUP_APPICON_SIZE);
} else {
- icon = textureCache.bind_cairo_surface_property(windows[i],
- 'icon',
- POPUP_APPICON_SIZE);
+ icon = new St.Icon({
+ gicon: textureCache.bind_cairo_surface_property(windows[i], 'icon'),
+ icon_size: POPUP_APPICON_SIZE,
+ });
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]