st-texture-cache: use StImageContent for cairo bound surface

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/5
This commit is contained in:
Marco Trevisan (Treviño)
2019-03-01 06:56:26 +01:00
committed by Jonas Ådahl
parent e3c5c9a2e7
commit 19c60ff5c5
4 changed files with 14 additions and 7 deletions

View File

@ -211,8 +211,8 @@ window_backed_app_get_icon (ShellApp *app,
actor = st_texture_cache_bind_cairo_surface_property (st_texture_cache_get_default (),
G_OBJECT (window),
"icon");
g_object_set (actor, "width", (float) size, "height", (float) size, NULL);
"icon",
size);
return actor;
}