gcr: Always specify the context for 'running' prompts
authorStef Walter <stefw@gnome.org>
Fri, 21 Sep 2012 07:20:34 +0000 (09:20 +0200)
committerStef Walter <stefw@gnome.org>
Mon, 22 Oct 2012 13:58:55 +0000 (15:58 +0200)
 * 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

index b80c899..9e54065 100644 (file)
@@ -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 */