On Wed, 19 Sep 2001, Peter Kese wrote:

>
> Hello again!
>
> Here are two more fixes for missing typecasts in pygtk-1.99
>
> 1) init_pygobject() in pygobject.h
>
> instead of
>
>   _PyGObject_API = PyCObject_AsVoidPtr(cobject);
>
> there should be
>
>   _PyGObject_API = (_PyGObject_Functions*) PyCObject_AsVoidPtr(cobject);
>
>
>
> 2) ExtensionClassImported in ExtensionClass.h
>
> instead of
>
> /* Import the ExtensionClass CAPI */
> #define ExtensionClassImported \
>   (PyExtensionClassCAPI= PyCObject_Import("ExtensionClass","CAPI"))
>
> there should be
>
> /* Import the ExtensionClass CAPI */
> #define ExtensionClassImported \
>   (PyExtensionClassCAPI= (struct ExtensionClassCAPIstruct*) \
>                          PyCObject_Import("ExtensionClass","CAPI"))
>
> Same applies to #define MakeSureExtensionClassImported

Out of interest, what exactly are you doing with pygtk?  If you are trying
to compile pygtk, you should definitely be using a C compiler.  I haven't
tried embedding development pygtk into a C++ program yet though.

I can add the extra casts if that will help.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to