From 18ef300a07d7741c6503775b183f857858924b18 Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Fri, 14 Dec 2012 10:54:36 -0600 Subject: Fix deprecations --- python/mateweathermodule.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/mateweathermodule.c b/python/mateweathermodule.c index 9427849..5bd2775 100644 --- a/python/mateweathermodule.c +++ b/python/mateweathermodule.c @@ -36,7 +36,11 @@ initmateweather(void) PyObject *m, *d; init_pygobject (); +#if GLIB_CHECK_VERSION (2, 32, 0) + /* g_thread_init (NULL); */ +#else g_thread_init (NULL); +#endif m = Py_InitModule ("mateweather", pymateweather_functions); d = PyModule_GetDict (m); -- cgit v1.2.1 From 032377291f83cba3d0ab0eed7665cb2f5df0d2bd Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Fri, 14 Dec 2012 13:46:57 -0600 Subject: Stylistic update --- python/mateweathermodule.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/mateweathermodule.c b/python/mateweathermodule.c index 5bd2775..63691f8 100644 --- a/python/mateweathermodule.c +++ b/python/mateweathermodule.c @@ -36,9 +36,7 @@ initmateweather(void) PyObject *m, *d; init_pygobject (); -#if GLIB_CHECK_VERSION (2, 32, 0) - /* g_thread_init (NULL); */ -#else +#if !GLIB_CHECK_VERSION (2, 32, 0) g_thread_init (NULL); #endif -- cgit v1.2.1