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.
This commit is contained in:
Benjamin Otte 2022-06-09 07:16:13 +02:00
parent e437a9c348
commit 7c034cc283

View 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);
}