tests: Port GObject tests from g_thread_create() to g_thread_new()

To avoid warnings about deprecated functions.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #1434
This commit is contained in:
Philip Withnall
2022-05-26 18:34:06 +01:00
parent 70401ae8c3
commit ed84b8f468
4 changed files with 6 additions and 6 deletions

View File

@@ -129,10 +129,10 @@ test_refcount_object_basics (void)
for (i = 0; i < n_threads; i++) {
GThread *thread;
thread = g_thread_create ((GThreadFunc) run_thread, test1, TRUE, NULL);
thread = g_thread_new (NULL, (GThreadFunc) run_thread, test1);
g_array_append_val (test_threads, thread);
thread = g_thread_create ((GThreadFunc) run_thread, test2, TRUE, NULL);
thread = g_thread_new (NULL, (GThreadFunc) run_thread, test2);
g_array_append_val (test_threads, thread);
}