inscription: Set css name
authorBenjamin Otte <otte@redhat.com>
Thu, 9 Jun 2022 05:16:13 +0000 (07:16 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 11 Jun 2022 00:15:08 +0000 (02:15 +0200)
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

index ffe7ffd09c3616847d76accf119839a85afa6d29..e043e3a0e4ecfecda4b96a790d235cc3cc5e77e6 100644 (file)
@@ -654,6 +654,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);
 }