[gtk/wip/otte/inscription: 12/14] inscription: Set css name
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/inscription: 12/14] inscription: Set css name
- Date: Fri, 10 Jun 2022 02:34:34 +0000 (UTC)
commit 35c0fadc9f61e3eb14fc71c548332160da6dc31a
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 4f30107cc6..164b29256b 100644
--- a/gtk/gtkinscription.c
+++ b/gtk/gtkinscription.c
@@ -652,6 +652,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]