[gcr] gcr: Always specify the context for 'running' prompts
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] gcr: Always specify the context for 'running' prompts
- Date: Mon, 22 Oct 2012 14:01:45 +0000 (UTC)
commit e9e301944401f7442b945eb00d8b7be5760fef67
Author: Stef Walter <stefw gnome org>
Date: Fri Sep 21 09:20:34 2012 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]