Update a comment about widget styling

This commit is contained in:
Přemysl Eric Janouch 2021-10-17 08:33:11 +02:00
parent 8815d72db7
commit 1ca42eb8e2
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -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,