summaryrefslogtreecommitdiff
path: root/pango.override
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2002-08-24 14:25:23 +0000
committerJames Henstridge <jamesh@src.gnome.org>2002-08-24 14:25:23 +0000
commitf1368db68a3636c2b4d83dbbc66b1e2c0b1b7441 (patch)
tree7adec65f66c7cdf12710fea66461871bcf4c5fe1 /pango.override
parent247d4f488f913d50b7077b678125f66f7358a43a (diff)
downloadpygtk-f1368db68a3636c2b4d83dbbc66b1e2c0b1b7441.tar.gz
mingw32 patches from Cedric Gustin <cgustin@ibelgique.com>:
2002-08-24 James Henstridge <james@daa.com.au> mingw32 patches from Cedric Gustin <cgustin@ibelgique.com>: * gtk/gtk.override: ignore more socket/plug functions on win32. * gtk/gdk.override: gdk_pixmap_lookup is not implemented on win32. * gtk/Makefile.am (common_ldflags): and here. * pango.override (PyPangoAttribute_Type): initialise tp_alloc and tp_new in the init() function, rather than in the structure definition itself. * Makefile.am (common_ldflags): pass -no-undefined if we are on windows. * configure.in: turn on win32 DLL support, and add OS_WIN32 and PLATFORM_WIN32 conditionals for use in makefiles.
Diffstat (limited to 'pango.override')
-rw-r--r--pango.override6
1 files changed, 4 insertions, 2 deletions
diff --git a/pango.override b/pango.override
index 80691f77..b4b592b5 100644
--- a/pango.override
+++ b/pango.override
@@ -138,8 +138,8 @@ static PyTypeObject PyPangoAttribute_Type = {
0, /* tp_descr_set */
0, /* tp_dictoffset */
(initproc)0, /* tp_init */
- PyType_GenericAlloc, /* tp_alloc */
- PyType_GenericNew, /* tp_new */
+ (allocfunc)0, /* tp_alloc */
+ (newfunc)0, /* tp_new */
0, /* tp_free */
(inquiry)0, /* tp_is_gc */
(PyObject *)0, /* tp_bases */
@@ -147,6 +147,8 @@ static PyTypeObject PyPangoAttribute_Type = {
%%
init
+ PyPangoAttribute_Type.tp_alloc = PyType_GenericAlloc;
+ PyPangoAttribute_Type.tp_new = PyType_GenericNew;
if (PyType_Ready(&PyPangoAttribute_Type) < 0)
return;
%%