[pygtk] wnck.Window.get_geometry missing?

Magnus Therning magnus at therning.org
Sun May 28 04:56:33 WST 2006


I can't figure out why wnck.Window.get_geometry isn't in the python
bindings.

wnck.defs contains the following

 (define-method get_geometry
   (of-object "WnckWindow")
   (c-name "wnck_window_get_geometry")
   (return-type "none")
   (parameters
     '("int*" "xp")
     '("int*" "yp")
     '("int*" "widthp")
     '("int*" "heightp")
   )
 )

But that doesn't seem to result in the function turning up :-(

I've only tested this on Debian Sid but I can't see any reason for it to
be distro specific. The following would check if it's there:

 import wnck, gtk
 s = wnck.screen_get_default()
 while gtk.events_pending(): gtk.main_iteration()
 w = s.get_active_window()
 print [f for f in dir(w) if f == 'get_geometry']

On my system that results in the printing of an empty list.

Any pointers on how to fix this (I've not managed to find any docs on
pygtk-codegen-2.0 at all) would be much appreciated.

/M

-- 
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.

If you can explain how you do something, then you're very very bad at
it.
     -- John Hopfield
-------------- 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/20060527/b9788b71/attachment.pgp


More information about the pygtk mailing list