[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GtkWidget "visibility-notify-event" and visibility.
- From: Alexander <b3nder yandex ru>
- To: gtk-app-devel-list gnome org
- Subject: Re: GtkWidget "visibility-notify-event" and visibility.
- Date: Tue, 24 Mar 2009 23:49:13 +0300
On Tuesday 24 March 2009, Chris Vine wrote:
> On Tue, 24 Mar 2009 17:30:38 +0300
> Alexander <b3nder yandex ru> wrote:
> > Hi, list.
> >
> > Widgets in GtkNotebook doesn't receive GDK_VISIBILITY_NOTIFY events
> > with state GDK_VISIBILITY_FULLY_OBSCURED while its being
> > "deactivated" on tabs switching. However its receive events with
> > state GDK_VISIBILITY_UNOBSCURED on activation. Where is the catch?
>
> Hiding a widget does not count as a visibility notify obscured event as
> it appears that the obscured attribute is intended to cover cases where
> one unhidden widget obscures another. On this approach, whether
> something is unobscured is not the same as whether something is visible.
>
> To find out whether a widget is visible in the sense in which you
> intend it, you probably need to call GTK_WIDGET_VISIBLE(), which will
> reveal whether gtk_widget_hide() has been called on it.
>
> Chris
>
Thanks, GTK_WIDGET_VISIBLE() may help me. Is there any way to catch event when widget is actualy hiding?
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]