Don't use deprecated GThread API in gio tests

This commit is contained in:
Matthias Clasen
2011-10-10 09:49:50 -04:00
parent 5662619f22
commit 93e49aea1b
19 changed files with 64 additions and 69 deletions

View File

@@ -940,10 +940,11 @@ test_dispatch (const gchar *object_path)
/* run this in a thread to avoid deadlocks */
error = NULL;
thread = g_thread_create (test_dispatch_thread_func,
(gpointer) object_path,
TRUE,
&error);
thread = g_thread_new ("test_dispatch",
test_dispatch_thread_func,
(gpointer) object_path,
TRUE,
&error);
g_assert_no_error (error);
g_assert (thread != NULL);
g_main_loop_run (loop);