[Rawstudio-commit] r4131 - trunk/src

Klaus Post klauspost at gmail.com
Mon Feb 13 17:00:43 CET 2012


Author: post
Date: 2012-02-13 17:00:43 +0100 (Mon, 13 Feb 2012)
New Revision: 4131

Modified:
   trunk/src/application.c
Log:
g_thread_init is deprecated on newer glibs.

Modified: trunk/src/application.c
===================================================================
--- trunk/src/application.c	2012-02-11 17:22:16 UTC (rev 4130)
+++ trunk/src/application.c	2012-02-13 16:00:43 UTC (rev 4131)
@@ -703,8 +703,10 @@
 		rs_debug_setup(debug);
 
 	gdk_threads_set_lock_functions(rs_gdk_lock, rs_gdk_unlock);
+#if GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION < 31
 	g_thread_init(NULL);
 	gdk_threads_init();
+#endif
 
 #ifdef ENABLE_NLS
 	bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);




More information about the Rawstudio-commit mailing list