mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-01 00:36:18 +01:00
GDBus: Use thread-default GMainContext in _g_assert_property_notify + friends
Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
parent
6a45180c95
commit
982195b61c
@ -60,7 +60,7 @@ _g_assert_property_notify_run (gpointer object,
|
|||||||
guint timeout_id;
|
guint timeout_id;
|
||||||
PropertyNotifyData data;
|
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;
|
data.timed_out = FALSE;
|
||||||
s = g_strdup_printf ("notify::%s", property_name);
|
s = g_strdup_printf ("notify::%s", property_name);
|
||||||
handler_id = g_signal_connect (object,
|
handler_id = g_signal_connect (object,
|
||||||
@ -111,7 +111,7 @@ _g_assert_signal_received_run (gpointer object,
|
|||||||
guint timeout_id;
|
guint timeout_id;
|
||||||
SignalReceivedData data;
|
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;
|
data.timed_out = FALSE;
|
||||||
handler_id = g_signal_connect_swapped (object,
|
handler_id = g_signal_connect_swapped (object,
|
||||||
signal_name,
|
signal_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user