On Sun, May 28, 2006 at 11:57:00PM +0100, Gustavo J. A. M. Carneiro wrote:
[..]
> Here's how I'd solve it:
>
> 1. comment out the int* parameters in the defs;
> 2. compile; it's going to fail, of course;
> 3. go to the generated C file, look for the wrapper, copy it
> 4. go to the .override file, add something like
>%% override wnck_window_get_geometry noargs
><paste the wrapper here>
> 5. Edit the wrapper
> a) declare a few int variables, pass the missing arguments by taking
>a reference to the variables, like &x, &y, &width, &height
> b) replace the Py_None return block with
> return Py_BuildValue("iiii", x, y, width, height);
> 6. Uncomment back the parameters in the .defs
> 7. Compile, test, submit the patch
>
> Good luck :-)Worked like a charm :-) I've created bug 343332[1] with a patch that works fine on my system. /M 1. http://bugzilla.gnome.org/show_bug.cgi?id=343332 -- Magnus Therning (OpenPGP: 0xAB4DFBA4) [EMAIL PROTECTED] Jabber: [EMAIL PROTECTED] http://therning.org/magnus Software is not manufactured, it is something you write and publish. Keep Europe free from software patents, we do not want censorship by patent law on written works. "Sendmail" and "make" are two well known programs that are pretty widely regarded as being debugged into existence. That's why their command languages are so poorly thought out and difficult to learn. It's not just you -- everyone finds them troublesome. -- Peter van der Linden, Expert C Programming, p. 220
pgpcfANzc58iF.pgp
Description: PGP signature
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
