[pygobject] Drop deprecated g_thread_create()
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Drop deprecated g_thread_create()
- Date: Tue, 15 Jan 2013 09:43:22 +0000 (UTC)
commit 90c6f596df2a96f9c8059ae9157bc467a80b7574
Author: Martin Pitt <martinpitt gnome org>
Date: Tue Jan 15 10:42:49 2013 +0100
Drop deprecated g_thread_create()
Replace with g_thread_new(). This is available with glib >= 2.32, and we
already require >= 2.34.
tests/test-thread.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-thread.c b/tests/test-thread.c
index 0f5b909..438cb97 100644
--- a/tests/test-thread.c
+++ b/tests/test-thread.c
@@ -43,8 +43,7 @@ other_thread_cb (TestThread *self)
static void
test_thread_emit_signal (TestThread *self)
{
- self->thread = g_thread_create ((GThreadFunc)other_thread_cb,
- self, TRUE, NULL);
+ self->thread = g_thread_new ("t", (GThreadFunc)other_thread_cb, self);
}
static void test_thread_init (TestThread *self) {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]