[gnome-shell/wip/fmuellner/window-app-icon-size: 1/4] texture-cache: Load images into StWidgets
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/window-app-icon-size: 1/4] texture-cache: Load images into StWidgets
- Date: Fri, 8 Mar 2019 13:39:16 +0000 (UTC)
commit 3ca9a235fe7dad45925401032477f6052a8d096d
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Mar 8 14:06:38 2019 +0100
texture-cache: Load images into StWidgets
Using widgets instead of plain actors will allow us to set the size
from CSS.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1027
src/st/st-texture-cache.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c
index a9688ec60..dbf0db4cf 100644
--- a/src/st/st-texture-cache.c
+++ b/src/st/st-texture-cache.c
@@ -71,10 +71,12 @@ G_DEFINE_TYPE(StTextureCache, st_texture_cache, G_TYPE_OBJECT);
static ClutterActor *
create_invisible_actor (void)
{
- return g_object_new (CLUTTER_TYPE_ACTOR,
- "opacity", 0,
- "request-mode", CLUTTER_REQUEST_CONTENT_SIZE,
- NULL);
+ StWidget *widget;
+ widget = g_object_new (ST_TYPE_WIDGET,
+ "opacity", 0,
+ "request-mode", CLUTTER_REQUEST_CONTENT_SIZE,
+ NULL);
+ return CLUTTER_ACTOR (widget);
}
/* Reverse the opacity we added while loading */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]