Re: GtkButtons and RUN_FIRST/RUN_LAST



Manish Singh <yosh gimp org> writes:

> The output is:
> 
> "clicked" event on bar: inactive
> "clicked" event on foo: active
> 
> so in the end, the user callback sees "foo" as chosen, even though "bar"
> is was clicked, and "bar" ends up active.
> 
> So while the RUN_LAST change now allows you to stop_emission on toggle
> buttons, it totally breaks the expected behavior for radio button clicked
> emissions. Requiring the use to use signal_after is lame and inconsistent
> with expected gtk behavior.

Well, actually, you are _supposed_ to use ::toggled for radio buttons
and check buttons.

I suppose a lot of people have this bug in this code, however. :-(


                                          Owen



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