summaryrefslogtreecommitdiffstats
path: root/gobject/pygenum.c
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-27 10:07:55 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-27 10:07:55 +0000
commit99f90ceb215313ca0e34510f7a080339f48e12ce (patch)
treea9d9e9a35263281b7cab7f54f18d9bf4eb3f26c0 /gobject/pygenum.c
parent2c9df6000e93158e14cf279e0cf3ee19acad11d0 (diff)
downloadpygobject-99f90ceb215313ca0e34510f7a080339f48e12ce.tar.gz
pygobject-99f90ceb215313ca0e34510f7a080339f48e12ce.tar.xz
pygobject-99f90ceb215313ca0e34510f7a080339f48e12ce.zip
Use the Py_TYPE macro everywhere.
2008-07-27 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: * gobject/gobjectmodule.c (pyg_object_new), (pyg__install_metaclass): * gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_init), (pyg_register_boxed): * gobject/pygenum.c (pyg_enum_reduce): * gobject/pyginterface.c (pyg_interface_init), (pyg_register_interface): * gobject/pygobject.c (pygobject_get_inst_data), (pygobject_register_class), (pygobject_new_with_interfaces), (pygobject_dealloc), (pygobject_repr), (pygobject_emit), (pygobject_chain_from_overridden), (pygobject_weak_ref_notify): * gobject/pygparamspec.c (pygobject_paramspec_register_types): * gobject/pygpointer.c (pyg_pointer_dealloc), (pyg_pointer_init), (pyg_register_pointer): * gobject/pygtype.c (pyg_type_from_object), (pyg_value_array_from_pyobject), (pyg_value_from_pyobject), (pyg_object_descr_doc_get): Use the Py_TYPE macro everywhere. svn path=/trunk/; revision=886
Diffstat (limited to 'gobject/pygenum.c')
-rw-r--r--gobject/pygenum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/pygenum.c b/gobject/pygenum.c
index e35f738..5b30fc1 100644
--- a/gobject/pygenum.c
+++ b/gobject/pygenum.c
@@ -278,7 +278,7 @@ pyg_enum_reduce(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, ":GEnum.__reduce__"))
return NULL;
- return Py_BuildValue("(O(i)O)", self->ob_type, _PyLong_AsLong(self),
+ return Py_BuildValue("(O(i)O)", Py_TYPE(self), _PyLong_AsLong(self),
PyObject_GetAttrString(self, "__dict__"));
}