[glib/gdbus-codegen] GDBus: Use thread-default GMainContext in _g_assert_property_notify + friends



commit 982195b61c4996e1dd8045dcdb818ff7ee45d5b4
Author: David Zeuthen <davidz redhat com>
Date:   Mon Apr 11 10:51:37 2011 -0400

    GDBus: Use thread-default GMainContext in _g_assert_property_notify + friends
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 gio/tests/gdbus-tests.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/gdbus-tests.c b/gio/tests/gdbus-tests.c
index 06f1384..c87a50f 100644
--- a/gio/tests/gdbus-tests.c
+++ b/gio/tests/gdbus-tests.c
@@ -60,7 +60,7 @@ _g_assert_property_notify_run (gpointer     object,
   guint timeout_id;
   PropertyNotifyData data;
 
-  data.loop = g_main_loop_new (NULL, FALSE);
+  data.loop = g_main_loop_new (g_main_context_get_thread_default (), FALSE);
   data.timed_out = FALSE;
   s = g_strdup_printf ("notify::%s", property_name);
   handler_id = g_signal_connect (object,
@@ -111,7 +111,7 @@ _g_assert_signal_received_run (gpointer     object,
   guint timeout_id;
   SignalReceivedData data;
 
-  data.loop = g_main_loop_new (NULL, FALSE);
+  data.loop = g_main_loop_new (g_main_context_get_thread_default (), FALSE);
   data.timed_out = FALSE;
   handler_id = g_signal_connect_swapped (object,
                                          signal_name,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]