On Fri, Dec 4, 2009 at 10:16, Geoff Bache <[email protected]> wrote:
>
> Hi all,
>
> I'm trying to iterate over all the toplevel windows using
> gtk.window_list_toplevels() and I'd like a good way to ignore tooltip
> windows.

>From looking at this code, seems you can look at the window type hint?

http://git.gnome.org/cgit/gtk+/tree/gtk/gtktooltip.c#n130

For good or bad, often is faster to look at the code.

Regards,

Tomeu

> I've tried and failed to find a good way to ask a window whether it's a
> tooltip window. It looked like
> gtk.Window.tooltips_get_info_from_tip_window was what I needed but that
> returns None all the time, I suppose because it works with old (pre
> 2.12) tooltips. There didn't seem to be an equivalent for the newer API.
>
> I tried from the other end as well using gtk.Widget.get_tooltip_window
> on all my widgets and storing them (which is a hack anyway),  but even
> that didn't work as it appears to return None pretty much all the time.
>
> Any help greatly appreciated.
>
> Regards,
> Geoff Bache
>
>
>
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>



-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to