summaryrefslogtreecommitdiff
path: root/src/gs-lock-plug.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-08-07 11:29:53 +0200
committerraveit65 <[email protected]>2019-08-11 09:26:28 +0200
commit46c7fbf1cb220533b1f2432a63373d04a23a3160 (patch)
treed1d51f6a6b947aed2cb81192d603bf5b05baddc0 /src/gs-lock-plug.c
parenta744a1ac9395e9b2fed0d9092e938164da347802 (diff)
downloadmate-screensaver-46c7fbf1cb220533b1f2432a63373d04a23a3160.tar.bz2
mate-screensaver-46c7fbf1cb220533b1f2432a63373d04a23a3160.tar.xz
Replace deprecated gtk_css_provider_get_default
Diffstat (limited to 'src/gs-lock-plug.c')
-rw-r--r--src/gs-lock-plug.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index 241b335..c3081c2 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -2008,7 +2008,11 @@ load_theme (GSLockPlug *plug)
g_free (filename);
if (g_file_test (css, G_FILE_TEST_IS_REGULAR))
{
- GtkCssProvider *style_provider = gtk_css_provider_get_default ();
+ static GtkCssProvider *style_provider = NULL;
+
+ if (style_provider == NULL)
+ style_provider = gtk_css_provider_new ();
+
gtk_css_provider_load_from_path (style_provider, css, NULL);
}
g_free (css);