From e9e301944401f7442b945eb00d8b7be5760fef67 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 21 Sep 2012 09:20:34 +0200 Subject: [PATCH] gcr: Always specify the context for 'running' prompts * Don't automatically use the thread context, unless that's what was passed to run_closure_begin(). https://bugzilla.gnome.org/show_bug.cgi?id=678611 --- gcr/gcr-prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcr/gcr-prompt.c b/gcr/gcr-prompt.c index b80c899..9e54065 100644 --- a/gcr/gcr-prompt.c +++ b/gcr/gcr-prompt.c @@ -247,7 +247,7 @@ static RunClosure * run_closure_begin (GMainContext *context) { RunClosure *closure = g_new0 (RunClosure, 1); - closure->loop = g_main_loop_new (context ? context : g_main_context_get_thread_default (), FALSE); + closure->loop = g_main_loop_new (context, FALSE); closure->result = NULL; /* We assume ownership of context reference */ -- 2.7.4