Re: [gtkmm] sensitivity seems to be 'ignored'
- From: Murray Cumming <murrayc usa net>
- To: Jeffrey Rush <rushjeffrey hotmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] sensitivity seems to be 'ignored'
- Date: 29 Aug 2002 17:48:09 +0100
Please use bugzilla for this sort of thing.
On Thu, 2002-08-29 at 17:38, Jeffrey Rush wrote:
>
> Hi all,
>
> ok, the attachment holds a short C++ example file (buttontest.cc).
> I also did a pure GTK+ version of it (buttons.c) - same trouble.
> Example usage (after compiling and starting):
> click "cool button" - uncool button set insensitive, click it anyway
> wait some seconds until uncool button is sensitive again
> look at console output: the uncool button's event got processed
> even though that button was insensitive.
> Because this trouble is also with GTK+ should I ask at that
> mailing list too?
> Or does someone know a workaround?
> Any help/suggestions appreciated! Thanks.
> Cheers,
> Jeffrey Rush.
>
>
> >From: Murray Cumming <murrayc usa net>
> >Reply-To: murrayc usa net
> >To: Jeffrey Rush <rushjeffrey hotmail com>
> >CC: gtkmm-list <gtkmm-list gnome org>
> >Subject: Re: [gtkmm] sensitivity seems to be 'ignored'
> >Date: 28 Aug 2002 14:13:16 +0100
> >
> >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
>
>
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]