[gnome-shell/wip/fmuellner/window-app-icon-size: 3/4] app: Set styleclass on fallback app icons



commit 216b25c09080e39f9b781c0408e3bf5a2918a213
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Mar 8 14:10:56 2019 +0100

    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 3f91613fa..79a68219a 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -213,6 +213,8 @@ window_backed_app_get_icon (ShellApp *app,
                                                         G_OBJECT (window),
                                                         "icon",
                                                         size);
+  st_widget_add_style_class_name (ST_WIDGET (actor), "fallback-app-icon");
+
   return actor;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]