[gnome-shell/wip/fmuellner/update-tex-size: 4/4] texture-cache: Use content size for returned images
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/update-tex-size: 4/4] texture-cache: Use content size for returned images
- Date: Sun, 10 Feb 2019 08:56:32 +0000 (UTC)
commit cd3cd2878c29f231d88d7b3006a3cc8714a24383
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Feb 9 19:16:15 2019 +0100
texture-cache: Use content size for returned images
Since commit deec0bf2550, the texture cache is based on ClutterImage
rather than ClutterTexture. As ClutterImage (like all ClutterContent)
is only concerned with painting, it doesn't influence the size of the
actor it is added to at all, and the returned actor will now stay at
size 0x0 after the image has been loaded.
Set up the actor to follow the content's size instead, to get closer
to the previous behavior.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/402
src/st/st-texture-cache.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c
index 1d11ce71c..967ad9e2e 100644
--- a/src/st/st-texture-cache.c
+++ b/src/st/st-texture-cache.c
@@ -71,6 +71,7 @@ create_invisible_actor (void)
{
return g_object_new (CLUTTER_TYPE_ACTOR,
"opacity", 0,
+ "request-mode", CLUTTER_REQUEST_CONTENT_SIZE,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]