Hi,
i'm trying to deactivate a button, and i did the following:
gtk_widget_set_state(button, GTK_STATE_INSENSITIVE);
but when i try to reactivate the button i did:
gtk_widget_set_state(button, GTK_STATE_NORMAL);
and it doesn't work, nor do the other GtkStateType (GTK_STATE_A
gt; and it doesn't work, nor do the other GtkStateType (GTK_STATE_ACTIVE, etc...)
use gtk_widget_set_sensitive () instead.
Salut, Sven
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
>use gtk_widget_set_sensitive () instead.
thanks, that works..
but there's a problem... the button acumulates the events...
if i put the button insensitive and then the user clicks 3 times, when the button
becomes sensitive it
calls the three events... how do i do to clean the events queue?
A
<[EMAIL PROTECTED]> writes:
> >use gtk_widget_set_sensitive () instead.
>
> thanks, that works..
> but there's a problem... the button acumulates the events...
> if i put the button insensitive and then the user clicks 3 times, when the button
>becomes sensitive it
> calls the three events...