summaryrefslogtreecommitdiffstats
path: root/gobject/pygparamspec.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/pygparamspec.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/pygparamspec.c')
-rw-r--r--gobject/pygparamspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/pygparamspec.c b/gobject/pygparamspec.c
index c52efeb..c4b68ec 100644
--- a/gobject/pygparamspec.c
+++ b/gobject/pygparamspec.c
@@ -384,7 +384,7 @@ pyg_param_spec_new(GParamSpec *pspec)
void
pygobject_paramspec_register_types(PyObject *d)
{
- PyGParamSpec_Type.ob_type = &PyType_Type;
+ Py_TYPE(&PyGParamSpec_Type) = &PyType_Type;
PyGParamSpec_Type.tp_dealloc = (destructor)pyg_param_spec_dealloc;
PyGParamSpec_Type.tp_getattr = (getattrfunc)pyg_param_spec_getattr;
PyGParamSpec_Type.tp_compare = (cmpfunc)pyg_param_spec_compare;