[gnome-software: 1/2] gs-license-tile: Fix resetting the background on community built tile




commit 0bbd9cd4d14fba2800a15b1dfe359dc43a424fae
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Jan 6 13:49:07 2022 +0000

    gs-license-tile: Fix resetting the background on community built tile
    
    The code to remove the previous CSS class was removing an incorrect CSS
    class.
    
    See: !1153

 src/gs-license-tile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gs-license-tile.c b/src/gs-license-tile.c
index bc36c37d1..0ced8fe64 100644
--- a/src/gs-license-tile.c
+++ b/src/gs-license-tile.c
@@ -118,7 +118,7 @@ gs_license_tile_refresh (GsLicenseTile *self)
        for (gsize i = 0; i < G_N_ELEMENTS (self->lozenges); i++) {
                GtkStyleContext *context = gtk_widget_get_style_context (self->lozenges[i]);
                gtk_style_context_remove_class (context, "green");
-               gtk_style_context_remove_class (context, "red");
+               gtk_style_context_remove_class (context, "grey");
                gtk_style_context_add_class (context, css_class);
        }
 


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