[Glade-users] How To Test For "show"?

Damon Chaplin damon at karuna.uklinux.net
Sun Nov 6 16:44:11 EST 2005


On Sun, 2005-11-06 at 13:19 -0800, Bob Jones wrote:
> How can I test if a widget's propert is set to "show",
> as in "gtk_widget_show"?
> 
> I'd like to code something like the following:
> 
> if (label is showing)
> {
>   gtk_widget_hide(label);
> }
> 
> but I don't know what the code would be for the if
> statement check...

I think this should do it:

  if (GTK_WIDGET_DRAWABLE (widget))


> Where would I find documentation for stuff like this? Thanks!

API documentation is here (though it isn't complete):
  http://developer.gnome.org/doc/API/

There are some links to other documentation here:
  http://www.gtk.org/

Damon




More information about the Glade-users mailing list