From f75c15fda5d5cdd3a68b19f63fbe56dd1922d74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Mon, 25 Jun 2018 03:42:38 +0200 Subject: Workaround an issue with getting theme colours I see that GTK+ 3 is no longer something to be used. --- liblogdiag/ld-category-symbol-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liblogdiag/ld-category-symbol-view.c b/liblogdiag/ld-category-symbol-view.c index 3171150..67dde59 100644 --- a/liblogdiag/ld-category-symbol-view.c +++ b/liblogdiag/ld-category-symbol-view.c @@ -350,6 +350,9 @@ 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) + gtk_style_context_add_class (context, "gtkstyle-fallback"); + gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &color); gdk_cairo_set_source_rgba (cr, &color); -- cgit v1.2.3