[pygtk] wnck.Window.get_geometry missing?

Magnus Therning magnus at therning.org
Tue May 30 05:19:46 WST 2006


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)
magnus at therning.org             Jabber: magnus.therning at gmail.com
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20060529/29a90f7a/attachment.pgp


More information about the pygtk mailing list