Re: changing sensitivity of a button
- From: "David J. Andruczyk" <djandruczyk yahoo com>
- To: Joachim "Klähn" <gtk-list kon-klaehn com>, gtk-list gnome org
- Subject: Re: changing sensitivity of a button
- Date: Sun, 1 Apr 2007 19:12:59 -0700 (PDT)
You might try "g_signal_handlers_block/unblock_by_func" to block
any further signal emission for that button until your conditions
are met and then unblock it..
This is an adaptation of a FAQ entry http://gtk.org/faq/#AEN843
--- Joachim Klähn <gtk-list kon-klaehn com> 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
> 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
> has left the button's area an then reentered.
> Has anybody an workaround.
> gtk-list mailing list
> gtk-list gnome org
-- David J. Andruczyk
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
] [Thread Prev