summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-09-23 16:15:13 +0200
committerAron Budea <aron.budea@collabora.com>2019-07-20 16:25:09 +0200
commitefca78cc5c8274f0272d51a7d88add5366b5cc52 (patch)
tree8fda12f7d78d710071476c4d1fec0ba2f27e03c7
parentdecef457728823ee89c1a1ad3afa02c26cebca25 (diff)
Band-aid fix for deprecate gtk_css_provider_get_default
by gtk_css_provider_new Don't hesitate to revert this one but only if there's a patch to fix it. Change-Id: Id91fefb689326a31e029a788bd3729e670fe3100 Reviewed-on: https://gerrit.libreoffice.org/60915 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit 003bc12a3c11d67e54c14d1bc48fb8bba56ec49c)
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx b/libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx
index 5dca746d5f25..6a0d501f2138 100644
--- a/libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx
@@ -107,7 +107,7 @@ GtkWidget* GtvHelpers::createCommentBox(const boost::property_tree::ptree& aComm
if (aComment.get("parent", -1) > 0)
{
GtkStyleContext* pStyleContext = gtk_widget_get_style_context(pCommentVBox);
- GtkCssProvider* pCssProvider = gtk_css_provider_get_default();
+ GtkCssProvider* pCssProvider = gtk_css_provider_new();
gtk_style_context_add_class(pStyleContext, "commentbox");
gtk_style_context_add_provider(pStyleContext, GTK_STYLE_PROVIDER(pCssProvider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
gtk_css_provider_load_from_data(pCssProvider, ".commentbox {background-color: lightgreen;}", -1, nullptr);