summaryrefslogtreecommitdiff
path: root/src/gs-lock-plug.c
diff options
context:
space:
mode:
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);