Re: active and inactive



Hi,

<Liu Jeffrey inventec com> writes:

>    I use "gtk_widget_set_state(button1,GTK_STATE_INSENSITIVE)"
> to inactive the "button1". It works !!! 
>    But then when using "gtk_widget_set_state(button1,GTK_STATE_NORMAL)" or
> "gtk_widget_set_state(button1,GTK_STATE_ACTIVE)" 
> to restore "button1" active. It fails. The button is still inactive.

you want to use gtk_widget_set_sensitive() instead.


Salut, Sven



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