[Users] Theming of gtk3 version
Mikau
mikau at aaathats3as.com
Wed Aug 4 03:49:45 CEST 2021
I was able to fix the problem I was having by doing this:
------------------------------------------------------
From 597658cd70a95b4c2dde7942c2c06e2016dbd384 Mon Sep 17 00:00:00 2001
From: Mikau <mikau at aaathats3as.com>
Date: Wed, 4 Aug 2021 03:31:26 +0200
Subject: [PATCH] Set a CSS name for the CMCList class
This makes it possible to selct it in themes, e.g:
CMCList {
background: black;
color: white;
}
Before, the name was inherited from the parent, so you had to do:
widget {...}
which applied to many other things widgets as well.
---
src/gtk/gtkcmclist.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c
index f27d78647..fb7bd619a 100644
--- a/src/gtk/gtkcmclist.c
+++ b/src/gtk/gtkcmclist.c
@@ -920,6 +920,7 @@ gtk_cmclist_class_init (GtkCMCListClass *klass)
GDK_RELEASE_MASK | GDK_SHIFT_MASK |
GDK_CONTROL_MASK,
"end_selection", 0);
+ gtk_widget_class_set_css_name (widget_class, "CMCList");
}
static void
--
2.32.0
More information about the Users
mailing list