[Libreoffice-commits] core.git: libreofficekit/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Sep 29 07:00:12 UTC 2018
libreofficekit/qa/gtktiledviewer/gtv-helpers.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 003bc12a3c11d67e54c14d1bc48fb8bba56ec49c
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Sep 23 16:15:13 2018 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat Sep 29 08:59:53 2018 +0200
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 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at yahoo.fr>
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);
More information about the Libreoffice-commits
mailing list