[pygobject] [gi] return PYGLIB_MODULE_ERROR_RETURN on error and use pygobject_init



commit 36094e5982d3e05d5662843b6d401f0974f5235f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Feb 2 20:50:12 2011 +0100

    [gi] return PYGLIB_MODULE_ERROR_RETURN on error and use pygobject_init

 tests/testhelpermodule.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/testhelpermodule.c b/tests/testhelpermodule.c
index 2fa7017..4d1b44d 100644
--- a/tests/testhelpermodule.c
+++ b/tests/testhelpermodule.c
@@ -527,7 +527,7 @@ PYGLIB_MODULE_START(testhelper, "testhelper")
   PyObject *m, *d;
   
   g_thread_init(NULL);
-  init_pygobject();
+  pygobject_init(-1, -1, -1);
 
   d = PyModule_GetDict(module);
 
@@ -538,12 +538,12 @@ PYGLIB_MODULE_START(testhelper, "testhelper")
     if (_PyGObject_Type == NULL) {
       PyErr_SetString(PyExc_ImportError,
 		      "cannot import name GObject from gobject");
-      return ;
+      return PYGLIB_MODULE_ERROR_RETURN;
     }
   } else {
     PyErr_SetString(PyExc_ImportError,
 		    "could not import gobject");
-    return ;
+    return PYGLIB_MODULE_ERROR_RETURN;
   }
 
   /* TestInterface */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]