Re: [gtkmm] sensitivity seems to be 'ignored'



On Tue, 2002-08-27 at 18:20, Jeffrey Rush wrote:
> Hello gtkmm-members,
> 
> I'm using gtkmm 1.2 and have the following trouble:
> a piece of code looks like this:
> 
> MyButton->set_sensitive(FALSE);
> HeavyCalculations();
> MyButton->set_sensitive(TRUE);
> 
> I guess it's obvious what I want to achieve with this: keep the
> user from clicking like mad when he thinks the program crashed
> due to alot of calculations. So, I tried the above code but even
> though the button is greyed out it obviously is still receiving
> 'clicked' events because the callback for that button is called
> right after it's sensitive again!

Even when you don't click on it a 2nd time? That sounds very strange.
Maybe you could give us a simple example to reproduce this behaviour.
Ideally you would also check whether it happens with pure GTK+ code.

-- 
Murray Cumming
murrayc usa net
www.murrayc.com




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