Re: [gtk-list] Widget shown test



On Sat, Jan 23, 1999 at 11:05:07PM -0800, Marsel Osipov wrote:

> I need to test if a window or a widget is being shown.  Something like
> this:
> 
> if(gtk_widget_is_shown(mywindow)
>   return(true;
> else
>   return(false);

You got it almost right.  Try this:

	return GTK_WIDGET_VISIBLE(mywindow);

-- John Kodis.



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