diff options
Diffstat (limited to 'glib/glibmodule.c')
-rw-r--r-- | glib/glibmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/glibmodule.c b/glib/glibmodule.c index ebea163..29a4713 100644 --- a/glib/glibmodule.c +++ b/glib/glibmodule.c @@ -627,7 +627,7 @@ pyglib_uri_list_extract_uris(PyObject *self, PyObject *args, PyObject *kwargs) ret = PyTuple_New(i); for (j = 0; j < i; j++) - PyTuple_SetItem(ret, j, PyString_FromString(uris[j])); + PyTuple_SetItem(ret, j, PYGLIB_PyUnicode_FromString(uris[j])); g_strfreev(uris); @@ -797,7 +797,7 @@ pyglib_register_api(PyObject *d) /* for addon libraries ... */ PyDict_SetItemString(d, "_PyGLib_API", - o=PyCObject_FromVoidPtr(&pyglib_api,NULL)); + o=PYGLIB_CPointer_WrapPointer(&pyglib_api,"glib._PyGLib_API")); Py_DECREF(o); pyglib_init_internal(o); |