Re: changing sensitivity of a button



David Nečas (Yeti) schrieb:
> On Sun, Apr 01, 2007 at 05:49:47PM +0200, Joachim Klähn wrote:
>   
>> I'm using a button to start an action on a mechanical component.
>> This action needs several seconds to finish.
>> During this time I'm switching off sensitivity of the button by use of
>> gtk_widget_set_sensitive(widget,0) to prevent the user from clicking it.
>> After completion of the action the button is made sensitive by use of
>> gtk_button_set_sensitive(widget,1)
>> If the user holds position of mouse pointer and tries to repeat the action
>> by pressing the button, he doesn't succed.
>> Futher activation of the button is only possible after the mouse cursor
>> has left the button's area an then reentered.
>>     
>
> http://bugzilla.gnome.org/show_bug.cgi?id=56070
>
>   
>> Has anybody an workaround.
>>     
>
> gtk_widget_set_sensitive(x, TRUE);
> gtk_widget_hide(x);
> gtk_widget_show(x);
>
> Yeti
>
> --
> http://gwyddion.net/
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>   
Hi,

thank you, that works.

achim



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