From 4f65283f3160bba4beb1202fbd7d3436fbdb34fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 8 Mar 2019 14:10:56 +0100 Subject: [PATCH] app: Set styleclass on fallback app icons For window backed apps, create_icon_texture() doesn't return an StIcon but a generic widget. Set an appropriate style class to make it easier to apply a specific style only to fallback icons. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1027 --- src/shell-app.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shell-app.c b/src/shell-app.c index e0b925b5f..7ef3a8156 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -215,6 +215,8 @@ window_backed_app_get_icon (ShellApp *app, G_OBJECT (window), "icon", size); + st_widget_add_style_class_name (widget, "fallback-app-icon"); + return CLUTTER_ACTOR (widget); }