Re: How do i find out if a widget is shown or hidden?



On Mon, 10 May 2010 04:31:59 +0200
Lothar Scholz <llothar web de> wrote:
> There seems to be no "gtk_widget_is_shown" or "gtk_widget_is_hidden"
> function. How do i find out if it is already shown?
 
That depends on what you mean.  You can find out if it has been shown or
hidden programmatically by calling GTK_WIDGET_VISIBLE() (or from gtk+-2.18,
gtk_widget_get_visible()). However, that will not tell you whether the
widget is obscured or iconified (that is, whether it is actually
visible on the desktop). You will need to track notify events and state
events to do that.

Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]