diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-09-23 16:15:13 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-09-29 08:59:53 +0200 |
commit | 003bc12a3c11d67e54c14d1bc48fb8bba56ec49c (patch) | |
tree | eb7df59b9b89cdab51c7aeeee079119856dec7ef /libreofficekit | |
parent | 594d77c1805ee8e7e7cbbe0e1051858a59c93012 (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>
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx b/libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx index d810170dc675..2a4784da5209 100644 --- a/libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx @@ -105,7 +105,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); |