Workaround an issue with getting theme colours

I see that GTK+ 3 is no longer something to be used.
This commit is contained in:
Přemysl Eric Janouch 2018-06-25 03:42:38 +02:00
parent cc629fd160
commit f75c15fda5
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -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);