Re: Button depressing
- From: "Douglas C. MacKenzie" <doug mobile-intelligence com>
- To: paul linuxaudiosystems com
- Cc: gtkmm-list gnome org
- Subject: Re: Button depressing
- Date: Fri, 26 May 2006 19:10:28 -0400
This introduces a race condition, where if the user toggles the
button while the flag is set you loose the event. The semantics
of the boolean need to be "ignore one event" and then the handler
needs to clear the boolean itself. Then both events will be
handled correctly, no matter what order they appear.
Doug
> all you seem to be doing is changing the colors. and no, GTK has no
> method of making a button appear "pressed" without going through the
> code path for an actual press. i just use a separate variable called
> something like in_my_special_context. the handler for the button
> click/press/release events simply checks to see if this is true, and
> returns true without doing anything. you set the var to true when you
> programmatically toggle the button, then back to false afterwards.
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]