Index: gobject/gobjectmodule.c
===================================================================
--- gobject/gobjectmodule.c	(revision 921)
+++ gobject/gobjectmodule.c	(working copy)
@@ -1788,7 +1788,7 @@
 static PyObject *
 pyg_threads_init (PyObject *unused, PyObject *args, PyObject *kwargs)
 {
-    if (!pyglib_enable_threads())
+    if (pyglib_enable_threads())
         return NULL;
     
     Py_INCREF(Py_None);
Index: glib/pyglib.c
===================================================================
--- glib/pyglib.c	(revision 921)
+++ glib/pyglib.c	(working copy)
@@ -119,24 +119,24 @@
 }
 
 #ifdef DISABLE_THREADING
-gboolean
+int
 pyglib_enable_threads(void)
 {
     PyErr_SetString(PyExc_RuntimeError,
 		    "pyglib threading disabled at compile time");
-    return FALSE;
+    return -1;
 }
 #else
 /* Enable threading; note that the GIL must be held by the current
  * thread when this function is called
  */
-gboolean
+int
 pyglib_enable_threads(void)
 {
     g_return_val_if_fail (_PyGLib_API != NULL, FALSE);
 
     if (_PyGLib_API->threads_enabled)
-	return TRUE;
+	return 0;
   
     PyEval_InitThreads();
     if (!g_threads_got_initialized)
@@ -145,7 +145,7 @@
     _PyGLib_API->threads_enabled = TRUE;
     pyglib_thread_state_tls_key = PyThread_create_key();
     
-    return TRUE;
+    return 0;
 }
 #endif
 
Index: glib/pyglib.h
===================================================================
--- glib/pyglib.h	(revision 921)
+++ glib/pyglib.h	(working copy)
@@ -34,7 +34,7 @@
 void pyglib_init_internal(PyObject *api);
 PyGILState_STATE pyglib_gil_state_ensure(void);
 void pyglib_gil_state_release(PyGILState_STATE state);
-gboolean pyglib_enable_threads(void);
+int pyglib_enable_threads(void);
 gboolean pyglib_error_check(GError **error);
 gboolean pyglib_gerror_exception_check(GError **error);
 PyObject *pyglib_register_exception_for_domain(gchar *name,
