pybank r83 - trunk/bank



Author: walters
Date: Sat Oct 25 15:50:37 2008
New Revision: 83
URL: http://svn.gnome.org/viewvc/pybank?rev=83&view=rev

Log:
Adjust for bug 557791


Modified:
   trunk/bank/bank-repository.c

Modified: trunk/bank/bank-repository.c
==============================================================================
--- trunk/bank/bank-repository.c	(original)
+++ trunk/bank/bank-repository.c	Sat Oct 25 15:50:37 2008
@@ -54,7 +54,7 @@
     gchar *namespace;
     PyObject *lazy_obj = NULL;
     int flags = 0;
-    gboolean ret;
+    GTypelib *ret;
     PyObject *pyret;
     GError *error = NULL;
 
@@ -71,7 +71,7 @@
      */
     ret = g_irepository_require(self->repo, namespace, NULL, flags, &error);
 
-    if (!ret) {
+    if (ret == NULL) {
 #if 0
 	g_print ("ERROR: %s (FIXME: raise GError exception)\n",
 		 error->message);
@@ -80,7 +80,7 @@
 	Py_INCREF(Py_None);
 	return Py_None;
     }
-    pyret = PyBool_FromLong(ret);
+    pyret = PyBool_FromLong(ret != NULL);
     Py_INCREF(pyret);
     return pyret;
 }



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