[maemo-developers] How to judge if GtkWindow is on top of hildon desktop or NOT

From: Simon Budig simon at budig.de
Date: Wed Jul 25 12:04:40 EEST 2007
Zhu, Peter J (peter.j.zhu at intel.com) wrote:
> I tried to use both gdk_window_is_visible and gtk_window_is_active to
> judge if GtkWindow is on top of hildon desktop or not. But unfortunately
> both fail to get correct result. 

Well, the result probably is correct, but does not describe the
visibility in your sense  :)

To track the effective visibility state connect a callback to the
visibility-notify-event signal. This gets invoked whenever the
visibility changes and you'll get a GdkVisibilityState, indicating if
your widget is fully visible, partially obscured or fully obscured.

Hope this helps,
        Simon
-- 
              simon at budig.de              http://simon.budig.de/

More information about the maemo-developers mailing list