[gtk/wip/otte/inscription: 7/7] inscription: Set css name




commit 08809f17bc0a883da3c4bc2e7c4baf38b7ca95f0
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jun 9 07:16:13 2022 +0200

    inscription: Set css name
    
    We use "label" just like GtkLabel as the two widgets differ in the way
    they are measured, but they should be styled the same.
    
    If it turns out we change our opinion on this for specific cases, we
    can add style classes later.

 gtk/gtkinscription.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkinscription.c b/gtk/gtkinscription.c
index 7bc0d81529..22bdaa577b 100644
--- a/gtk/gtkinscription.c
+++ b/gtk/gtkinscription.c
@@ -665,6 +665,7 @@ gtk_inscription_class_init (GtkInscriptionClass *klass)
 
   g_object_class_install_properties (gobject_class, N_PROPS, properties);
 
+  gtk_widget_class_set_css_name (widget_class, "label");
   gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_LABEL);
 }
 


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