GtkStateType....

2002-03-18 Thread hunchback
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

Re: GtkStateType....

2002-03-18 Thread Sven Neumann
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

RE: GtkStateType....

2002-03-18 Thread hunchback
>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

Re: GtkStateType....

2002-03-19 Thread Owen Taylor
<[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...