[pygtk] wnck.Window.get_geometry missing?

Gustavo J. A. M. Carneiro gjc at inescporto.pt
Sun May 28 19:31:14 WST 2006


Sáb, 2006-05-27 às 21:56 +0100, Magnus Therning escreveu:
> 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.

  You can start by opening a bug report on gnome bugzilla, product
gnome-python-desktop.  Thanks.

> 
> /M
> 
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>
The universe is always one step beyond logic



More information about the pygtk mailing list