GDBus: Use thread-default GMainContext in _g_assert_property_notify + friends

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2011-04-11 10:51:37 -04:00
parent 6a45180c95
commit 982195b61c

View File

@ -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,