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



commit 4f65283f3160bba4beb1202fbd7d3436fbdb34fc
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 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);
 }
 


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