From 99f90ceb215313ca0e34510f7a080339f48e12ce Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sun, 27 Jul 2008 10:07:55 +0000 Subject: Use the Py_TYPE macro everywhere. 2008-07-27 Johan Dahlin * 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 --- gobject/pygenum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gobject/pygenum.c') 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__")); } -- cgit