[gnome-software: 6/15] gs-app-tile: Add a CSS name to the widget




commit 9fd6a62c6244c447cb53b83c1b0040c6f60686d9
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Apr 20 15:00:08 2021 +0100

    gs-app-tile: Add a CSS name to the widget
    
    I don’t plan to use this, but others may find it useful for playing with
    the CSS in future.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gs-app-tile.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/gs-app-tile.c b/src/gs-app-tile.c
index 794482b86..46c4ef902 100644
--- a/src/gs-app-tile.c
+++ b/src/gs-app-tile.c
@@ -145,6 +145,7 @@ void
 gs_app_tile_class_init (GsAppTileClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
+       GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
 
        object_class->get_property = gs_app_tile_get_property;
        object_class->set_property = gs_app_tile_set_property;
@@ -166,6 +167,8 @@ gs_app_tile_class_init (GsAppTileClass *klass)
                                     G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
 
        g_object_class_install_properties (object_class, G_N_ELEMENTS (obj_props), obj_props);
+
+       gtk_widget_class_set_css_name (widget_class, "app-tile");
 }
 
 void


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