summaryrefslogtreecommitdiffstats
path: root/gobject/pygboxed.c
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2002-07-12 13:50:57 +0000
committerJames Henstridge <jamesh@src.gnome.org>2002-07-12 13:50:57 +0000
commit3b069a1dca0c8bd147ec1e2ea7a544e9f75d6032 (patch)
treebbea673a5ead36bb2c7eafa9d579de68d49564a6 /gobject/pygboxed.c
parentbf4674b72ab3c906d45458dcab26f6d5c7fe507b (diff)
downloadpygobject-3b069a1dca0c8bd147ec1e2ea7a544e9f75d6032.tar.gz
pygobject-3b069a1dca0c8bd147ec1e2ea7a544e9f75d6032.tar.xz
pygobject-3b069a1dca0c8bd147ec1e2ea7a544e9f75d6032.zip
These changes help with win32 compat.PYGTK_1_99_12
2002-07-12 James Henstridge <james@daa.com.au> These changes help with win32 compat. * pygboxed.c (PyGBoxed_Type): set tp_alloc and tp_new to NULL. (PyGPointer_Type): same here. * gobjectmodule.c (PyGInterface_Type): set tp_alloc and tp_new to NULL. (initgobject): set tp_new and tp_alloc for various types. * pygobject.c (PyGObject_Type): set tp_alloc and tp_new to NULL.
Diffstat (limited to 'gobject/pygboxed.c')
-rw-r--r--gobject/pygboxed.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gobject/pygboxed.c b/gobject/pygboxed.c
index a8f4a25..6007c61 100644
--- a/gobject/pygboxed.c
+++ b/gobject/pygboxed.c
@@ -115,8 +115,8 @@ PyTypeObject PyGBoxed_Type = {
0, /* tp_descr_set */
0, /* tp_dictoffset */
(initproc)pyg_boxed_init, /* tp_init */
- PyType_GenericAlloc, /* tp_alloc */
- PyType_GenericNew, /* tp_new */
+ (allocfunc)0, /* tp_alloc */
+ (newfunc)0, /* tp_new */
pyg_boxed_free, /* tp_free */
(inquiry)0, /* tp_is_gc */
(PyObject *)0, /* tp_bases */
@@ -281,8 +281,8 @@ PyTypeObject PyGPointer_Type = {
0, /* tp_descr_set */
0, /* tp_dictoffset */
(initproc)pyg_pointer_init, /* tp_init */
- PyType_GenericAlloc, /* tp_alloc */
- PyType_GenericNew, /* tp_new */
+ (allocfunc)0, /* tp_alloc */
+ (newfunc)0, /* tp_new */
pyg_pointer_free, /* tp_free */
(inquiry)0, /* tp_is_gc */
(PyObject *)0, /* tp_bases */