aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-06-25 03:42:38 +0200
committerPřemysl Janouch <p@janouch.name>2018-06-25 03:42:38 +0200
commitf75c15fda5d5cdd3a68b19f63fbe56dd1922d74f (patch)
tree98f4db8d6c995899af418eaba72c243c6b0d1cf3
parentcc629fd16039904338a8aad2b3e6988881a72c5a (diff)
downloadlogdiag-f75c15fda5d5cdd3a68b19f63fbe56dd1922d74f.tar.gz
logdiag-f75c15fda5d5cdd3a68b19f63fbe56dd1922d74f.tar.xz
logdiag-f75c15fda5d5cdd3a68b19f63fbe56dd1922d74f.zip
Workaround an issue with getting theme colours
I see that GTK+ 3 is no longer something to be used.
-rw-r--r--liblogdiag/ld-category-symbol-view.c3
1 files changed, 3 insertions, 0 deletions
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);