summaryrefslogtreecommitdiffstats
path: root/gio/gicon.override
diff options
context:
space:
mode:
Diffstat (limited to 'gio/gicon.override')
-rw-r--r--gio/gicon.override14
1 files changed, 7 insertions, 7 deletions
diff --git a/gio/gicon.override b/gio/gicon.override
index 9d27495..675ab49 100644
--- a/gio/gicon.override
+++ b/gio/gicon.override
@@ -183,7 +183,7 @@ _wrap_g_file_icon_tp_repr(PyGObject *self)
else
representation = g_strdup_printf("<%s at %p: UNKNOWN URI>", Py_TYPE(self)->tp_name, self);
- result = PyString_FromString(representation);
+ result = _PyUnicode_FromString(representation);
g_free(representation);
return result;
}
@@ -202,9 +202,9 @@ _wrap_g_themed_icon_new(PyGObject *self, PyObject *args, PyObject *kwargs)
kwlist, &name, &use_default_fallbacks))
return -1;
- if (PyString_Check(name)) {
+ if (_PyUnicode_Check(name)) {
pygobject_construct(self,
- "name", PyString_AsString(name),
+ "name", _PyUnicode_AsString(name),
"use-default-fallbacks", use_default_fallbacks, NULL);
return 0;
}
@@ -218,8 +218,8 @@ _wrap_g_themed_icon_new(PyGObject *self, PyObject *args, PyObject *kwargs)
for (k = 0; k < length; k++) {
PyObject *str = PyTuple_GetItem(tuple, k);
- if (str && PyString_Check(str))
- names[k] = PyString_AsString(str);
+ if (str && _PyUnicode_Check(str))
+ names[k] = _PyUnicode_AsString(str);
else {
Py_DECREF(tuple);
g_free(names);
@@ -257,7 +257,7 @@ _wrap_g_themed_icon_get_names(PyGObject *self)
ret = PyList_New(0);
while (names && *names) {
- PyObject *item = PyString_FromString(names[0]);
+ PyObject *item = _PyUnicode_FromString(names[0]);
PyList_Append(ret, item);
Py_DECREF(item);
@@ -290,7 +290,7 @@ _wrap_g_themed_icon_tp_repr(PyGObject *self)
}
g_string_append(representation, ">");
- result = PyString_FromString(representation->str);
+ result = _PyUnicode_FromString(representation->str);
g_string_free(representation, TRUE);
return result;
}