From: Alexander Larsson Date: Mon, 7 Sep 2009 08:25:14 +0000 (+0200) Subject: Remove warning in g_simple_async_result_complete X-Git-Tag: 2.22.0~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06de24f430d4b43733dec63ca0b840d129a716e2;p=platform%2Fupstream%2Fglib.git Remove warning in g_simple_async_result_complete This warning hits code that uses GSimpleAsyncResult outside of a mainloop as a helper object. For instance EggDBus does this. Since the bugs this warning would fix are pretty easy to spot and since EggDBus is deployed already we just remove the "called from outside main loop" warning. However, we need to keep the "called from wrong context" warning as that is very helpful when debugging misuse of the new multiple main context code. --- diff --git a/gio/gsimpleasyncresult.c b/gio/gsimpleasyncresult.c index fe0a6af..0c16049 100644 --- a/gio/gsimpleasyncresult.c +++ b/gio/gsimpleasyncresult.c @@ -582,8 +582,6 @@ g_simple_async_result_complete (GSimpleAsyncResult *simple) if (simple->context != current_context) g_warning ("g_simple_async_result_complete() called from wrong context!"); } - else - g_warning ("g_simple_async_result_complete() called from outside main loop!"); #endif if (simple->callback)