summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-17 08:33:11 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-17 08:33:11 +0200
commit1ca42eb8e25fa13386815bdc4504536e17ab125f (patch)
treedfae07cd168099c5b97ae2548459de57944c400b
parent8815d72db7fc600fd9902627864523acc00a5b09 (diff)
downloadlogdiag-1ca42eb8e25fa13386815bdc4504536e17ab125f.tar.gz
logdiag-1ca42eb8e25fa13386815bdc4504536e17ab125f.tar.xz
logdiag-1ca42eb8e25fa13386815bdc4504536e17ab125f.zip
Update a comment about widget styling
-rw-r--r--liblogdiag/ld-category-symbol-view.c5
1 files changed, 4 insertions, 1 deletions
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,