pybank r80 - in trunk: . bank



Author: walters
Date: Sun Oct 12 13:34:31 2008
New Revision: 80
URL: http://svn.gnome.org/viewvc/pybank?rev=80&view=rev

Log:
2008-10-12  Colin Walters  <walters verbum org>

	* gir/Makefile.am: Update to use version numbers for
	everything.




Modified:
   trunk/ChangeLog
   trunk/bank/bank-repository.c

Modified: trunk/bank/bank-repository.c
==============================================================================
--- trunk/bank/bank-repository.c	(original)
+++ trunk/bank/bank-repository.c	Sun Oct 12 13:34:31 2008
@@ -66,7 +66,10 @@
     if (lazy_obj != NULL && PyObject_IsTrue(lazy_obj))
 	flags |= G_IREPOSITORY_LOAD_FLAG_LAZY;
 
-    ret = g_irepository_require(self->repo, namespace, flags, &error);
+    /* TODO - handle versioning in some way, need to figure out what
+     * this looks like Python side. 
+     */
+    ret = g_irepository_require(self->repo, namespace, NULL, flags, &error);
 
     if (!ret) {
 #if 0
@@ -112,7 +115,7 @@
     int i, length;
     PyObject *retval;
     
-    namespaces = g_irepository_get_namespaces(self->repo);
+    namespaces = g_irepository_get_loaded_namespaces(self->repo);
 
     length = g_strv_length(namespaces);
     retval = PyTuple_New(length);
@@ -166,7 +169,7 @@
 				     kwlist, &namespace))
         return NULL;
 
-    return PyBool_FromLong(g_irepository_is_registered(self->repo, namespace));
+    return PyBool_FromLong(g_irepository_is_registered(self->repo, namespace, NULL));
 }
 
 static PyObject *



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