Re: Button depressing

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.


> 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

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