summaryrefslogtreecommitdiff
path: root/gsettings/dconfcontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'gsettings/dconfcontext.c')
-rw-r--r--gsettings/dconfcontext.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gsettings/dconfcontext.c b/gsettings/dconfcontext.c
deleted file mode 100644
index 5e11980..0000000
--- a/gsettings/dconfcontext.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "dconfcontext.h"
-
-static gpointer
-dconf_context_thread (gpointer data)
-{
- GMainContext *context = data;
- GMainLoop *loop;
-
- g_main_context_push_thread_default (context);
- loop = g_main_loop_new (context, FALSE);
- g_main_loop_run (loop);
-
- g_assert_not_reached ();
-}
-
-GMainContext *
-dconf_context_get (void)
-{
- static GMainContext *context;
- static gsize initialised;
-
- if (g_once_init_enter (&initialised))
- {
- GThread *thread;
-
- context = g_main_context_new ();
- thread = g_thread_new ("dconf worker", dconf_context_thread, context);
- g_thread_unref (thread);
- g_once_init_leave (&initialised, 1);
- }
-
- return context;
-}