I think the following quote from email I received from Adrian Phillips
applies (I got it privately and still haven't found the time to
integrate all bug fixes to the X11 interface -- shame on me!).
| I checked out Wafe to see what it did with XtConvertAndStore,
| etc. and it uses XtConvert. I tried this and it worked. You can
| remove all those hacks I gave you as they are now replaced by a four
| line change in python_to_res [...]:
|
| out.size = 0;
| out.addr = 0;
| #ifdef SCREWED_CONVERTANDSTORE
| XtConvert(w, typename, &in, ctype, &out);
| if (!out.addr) {
| #else
| if (!XtConvertAndStore(w, typename, &in, ctype, &out)) {
| #endif
| err_setstr(Xt_Error, "can't convert resource type");
| return 0;
| }
Note that in fact you don't need the #ifdef -- the code using
XtConvert always works as far as I can tell. Let me know if this
helps or not.
--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>