[gtk/wip/otte/inscription: 6/8] inscription: Set css name
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/inscription: 6/8] inscription: Set css name
- Date: Sat, 11 Jun 2022 00:28:45 +0000 (UTC)
commit 7c034cc28371d58f76627065304b55458bbf3316
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 ffe7ffd09c..e043e3a0e4 100644
--- a/gtk/gtkinscription.c
+++ b/gtk/gtkinscription.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]