summaryrefslogtreecommitdiffstats
path: root/gobject/pygparamspec.c
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-27 09:06:41 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-27 09:06:41 +0000
commit2c1fecd16f1cc8943455cf3d573cf441162a8969 (patch)
tree3ee74a9bb035c7628393ed70c72651228b3251d6 /gobject/pygparamspec.c
parent826e4b1a42873c8fadb3a7f98abf244c666a413b (diff)
downloadpygobject-2c1fecd16f1cc8943455cf3d573cf441162a8969.tar.gz
pygobject-2c1fecd16f1cc8943455cf3d573cf441162a8969.tar.xz
pygobject-2c1fecd16f1cc8943455cf3d573cf441162a8969.zip
Add _PyUnicode_Type macro
2008-07-27 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: Add _PyUnicode_Type macro * gobject/gobjectmodule.c (pyg_type_name), (pyg_type_from_name), (_pyg_signal_accumulator), (add_signals), (add_properties), (get_type_name_for_class), (pyg_signal_list_names), (pyg_signal_name), (pyg_signal_query), (pyg_object_new), (pyg_add_emission_hook), (pyg_remove_emission_hook): * gobject/pygboxed.c (pyg_boxed_repr): * gobject/pygenum.c (pyg_enum_repr), (pyg_enum_add), (pyg_enum_get_value_name), (pyg_enum_get_value_nick): * gobject/pygflags.c (pyg_flags_repr), (pyg_flags_add), (pyg_flags_get_first_value_name), (pyg_flags_get_first_value_nick), (pyg_flags_get_value_names), (pyg_flags_get_value_nicks): * gobject/pygobject.c (build_parameter_list), (PyGProps_getattro), (PyGProps_setattro), (pygobject_register_class), (pygobject_repr), (pygobject_init), (pygobject_get_properties), (pygobject_set_properties), (pygobject_connect), (pygobject_connect_after), (pygobject_connect_object), (pygobject_connect_object_after), (pygobject_emit), (pygobject_stop_emission), (pygobject_disconnect_by_func), (pygobject_handler_block_by_func), (pygobject_handler_unblock_by_func), (pygobject_object_register_types): * gobject/pygparamspec.c (pyg_param_spec_repr), (pyg_param_spec_getattr): * gobject/pygpointer.c (pyg_pointer_repr): * gobject/pygtype.c (pyg_type_wrapper_repr), (_wrap_g_type_wrapper__get_name), (pyg_type_from_object), (pyg_enum_get_value), (pyg_flags_get_value), (pyg_value_from_pyobject), (pyg_value_as_pyobject), (object_doc_descr_get), (_pyg_strv_from_gvalue), (_pyg_strv_to_gvalue): Use _PyUnicode_* macros in the gobject module svn path=/trunk/; revision=882
Diffstat (limited to 'gobject/pygparamspec.c')
-rw-r--r--gobject/pygparamspec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gobject/pygparamspec.c b/gobject/pygparamspec.c
index 8cc3b3e..8a62141 100644
--- a/gobject/pygparamspec.c
+++ b/gobject/pygparamspec.c
@@ -50,7 +50,7 @@ pyg_param_spec_repr(PyGParamSpec *self)
g_snprintf(buf, sizeof(buf), "<%s '%s'>",
G_PARAM_SPEC_TYPE_NAME(self->pspec),
g_param_spec_get_name(self->pspec));
- return PyString_FromString(buf);
+ return _PyUnicode_FromString(buf);
}
static void
@@ -131,7 +131,7 @@ pyg_param_spec_getattr(PyGParamSpec *self, const gchar *attr)
"maximum", "minimum", "name", "nick",
"owner_type", "value_type");
} else if (!strcmp(attr, "default_value")) {
- return PyString_FromFormat(
+ return _PyUnicode_FromFormat(
"%c", G_PARAM_SPEC_CHAR(pspec)->default_value);
} else if (!strcmp(attr, "minimum")) {
return PyInt_FromLong(G_PARAM_SPEC_CHAR(pspec)->minimum);
@@ -146,7 +146,7 @@ pyg_param_spec_getattr(PyGParamSpec *self, const gchar *attr)
"name", "nick", "owner_type",
"value_type");
} else if (!strcmp(attr, "default_value")) {
- return PyString_FromFormat(
+ return _PyUnicode_FromFormat(
"%c", G_PARAM_SPEC_UCHAR(pspec)->default_value);
} else if (!strcmp(attr, "minimum")) {
return PyInt_FromLong(G_PARAM_SPEC_UCHAR(pspec)->minimum);
@@ -249,7 +249,7 @@ pyg_param_spec_getattr(PyGParamSpec *self, const gchar *attr)
"flags", "name", "nick", "owner_type",
"value_type");
} else if (!strcmp(attr, "default_value")) {
- return PyString_FromFormat(
+ return _PyUnicode_FromFormat(
"%c", G_PARAM_SPEC_UNICHAR(pspec)->default_value);
}
} else if (G_IS_PARAM_SPEC_ENUM(pspec)) {