lör 2002-03-16 klockan 20.07 skrev Peter Kese:
> 
> Hi
> 
> I have managed to compile pygtk-1.99.7 on windows.
> Files can be found at:
>
Great news!

[snip]
>
> - gtk/gtkmodule.c: init_gtk
> 
>   A call to gtk_init_check(...) segfaults whenever
>   any arguments are passed to gtk. I have replaced
>   the call with the following code (so that the
>   arguments are being ignored):
> 
>       #ifdef _WIN32
>           if (!gtk_init_check(&0, NULL)) {
>       #else
>           if (!gtk_init_check(&argc, &argv)) {
>       #endif
>               if (argv != NULL) {
This feels wrong, why does it segfault in gtk_init_check in win32? 
Can't it be fixed in gtk+ instead of just #ifdeffing it out?

> 
> - gtk/gtk.defs and gtk/gtk-types.defs
> 
>   All references to GtkSocket and GtkPlug have been
>   removed because GtkSocket and GtkPlug are only
>   available in libgtk-x11 (on X windows).
> 
Hmm, i think the .override arguments can be easily extended so if
os.platform is win32, we ignore gtk_plug_* and gtk_socket_*.


> - gtk/gtk.c: _wrap_gtk_widget__get_allocation(...)
> 
>   There was a small bug in CVS version of pygtk that
>   should be resolved quickly (probably an autogeneration
>   problem). Anyway I have replaced:
>     return pyg_boxed_new(ret, FALSE, TRUE);
>   with:
>     return pyg_boxed_new(GDK_TYPE_RECTANGLE, &ret, FALSE, TRUE);
> 
> --------------------------
> 
> That is about it. You are invited to play with it and
> help with debugging.
> 
> Best luck,
> 
>       Peter
> 
> 
> P.S. I would appreciate if any of this would be included
> into the original pygtk CVS or distribution.
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to