From 1ca42eb8e25fa13386815bdc4504536e17ab125f Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sun, 17 Oct 2021 08:33:11 +0200 Subject: Update a comment about widget styling --- liblogdiag/ld-category-symbol-view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'liblogdiag') diff --git a/liblogdiag/ld-category-symbol-view.c b/liblogdiag/ld-category-symbol-view.c index 2f4e2d9..ca8e4f2 100644 --- a/liblogdiag/ld-category-symbol-view.c +++ b/liblogdiag/ld-category-symbol-view.c @@ -353,7 +353,10 @@ on_draw (GtkWidget *widget, cairo_t *cr) return FALSE; context = gtk_widget_get_style_context (widget); - // FIXME: there have to be better means (though I can't find them) + + // XXX: alternatively, we could use gtk_style_context_lookup_color() + // with hardcoded colour names ("theme_*_color")--this is cleaner, + // and unlike GtkStyle doesn't cause deprecation warnings gtk_style_context_add_class (context, "gtkstyle-fallback"); gtk_style_context_get_background_color (context, -- cgit v1.2.3-70-g09d2