[aisleriot] Just call g_type_init
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aisleriot] Just call g_type_init
- Date: Wed, 5 Oct 2011 19:35:19 +0000 (UTC)
commit ee73ae586a307aad04f00908122f3950303153db
Author: Christian Persch <chpe gnome org>
Date: Wed Oct 5 20:07:09 2011 +0200
Just call g_type_init
This will init gthreads, so no need to do it manually.
src/lib/ar-runtime.c | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/src/lib/ar-runtime.c b/src/lib/ar-runtime.c
index eeff9f9..f51766f 100644
--- a/src/lib/ar-runtime.c
+++ b/src/lib/ar-runtime.c
@@ -286,17 +286,9 @@ ar_runtime_init (const char *name)
}
#endif /* G_OS_WIN32 */
-#if defined(HAVE_GNOME) || defined(HAVE_RSVG_GNOMEVFS) || defined(ENABLE_SOUND)
- /* If we're going to use gconf, gnome-vfs, or canberra, we need to
- * init threads; and this has to be done before calling any other glib functions.
- */
-#if defined(LIBGAMES_SUPPORT_GI)
- /* Seed has already called g_thread_init() */
- g_assert (g_thread_get_initialized());
-#else
- g_thread_init (NULL);
-#endif
-#endif
+ /* This also initialises gthread */
+ g_type_init ();
+
/* May call any glib function after this point */
ar_profilestart ("ar_runtime_init");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]