[pygobject] Adapt to API changes: g_irepository_enumerate_versions
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Adapt to API changes: g_irepository_enumerate_versions
- Date: Wed, 28 Jul 2010 12:43:03 +0000 (UTC)
commit de519adcd21947a0aef7932cdecb78cef200c85e
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date: Wed Jul 28 14:42:36 2010 +0200
Adapt to API changes: g_irepository_enumerate_versions
gi/importer.py | 2 +-
gi/pygi-repository.c | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gi/importer.py b/gi/importer.py
index d18f334..1cb9b92 100644
--- a/gi/importer.py
+++ b/gi/importer.py
@@ -49,7 +49,7 @@ class DynamicImporter(object):
if path != self.path:
return
- if not repository.enumerate(namespace):
+ if not repository.enumerate_versions(namespace):
logging.error('Could not find any typelib for %s', namespace)
return None
else:
diff --git a/gi/pygi-repository.c b/gi/pygi-repository.c
index 5d3d793..fbe8ff5 100644
--- a/gi/pygi-repository.c
+++ b/gi/pygi-repository.c
@@ -60,21 +60,21 @@ PyTypeObject PyGIRepository_Type = {
};
static PyObject *
-_wrap_g_irepository_enumerate (PyGIRepository *self,
- PyObject *args,
- PyObject *kwargs)
+_wrap_g_irepository_enumerate_versions (PyGIRepository *self,
+ PyObject *args,
+ PyObject *kwargs)
{
static char *kwlist[] = { "namespace", NULL };
const char *namespace_;
GList *versions, *item;
PyObject *ret = NULL;
- if (!PyArg_ParseTupleAndKeywords (args, kwargs, "s:Repository.enumerate",
+ if (!PyArg_ParseTupleAndKeywords (args, kwargs, "s:Repository.enumerate_versions",
kwlist, &namespace_)) {
return NULL;
}
- versions = g_irepository_enumerate (self->repository, namespace_);
+ versions = g_irepository_enumerate_versions (self->repository, namespace_);
ret = PyList_New(0);
for (item = versions; item; item = item->next) {
char *version = item->data;
@@ -263,7 +263,7 @@ _wrap_g_irepository_get_version (PyGIRepository *self,
}
static PyMethodDef _PyGIRepository_methods[] = {
- { "enumerate", (PyCFunction) _wrap_g_irepository_enumerate, METH_VARARGS | METH_KEYWORDS },
+ { "enumerate_versions", (PyCFunction) _wrap_g_irepository_enumerate_versions, METH_VARARGS | METH_KEYWORDS },
{ "get_default", (PyCFunction) _wrap_g_irepository_get_default, METH_STATIC | METH_NOARGS },
{ "require", (PyCFunction) _wrap_g_irepository_require, METH_VARARGS | METH_KEYWORDS },
{ "get_infos", (PyCFunction) _wrap_g_irepository_get_infos, METH_VARARGS | METH_KEYWORDS },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]