Re: GtkButtons and RUN_FIRST/RUN_LAST
- From: Joel Becker <jlbec evilplan org>
- To: Tim Janik <timj gtk org>
- Cc: Owen Taylor <otaylor redhat com>, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: GtkButtons and RUN_FIRST/RUN_LAST
- Date: Fri, 26 Oct 2001 23:47:44 +0100
On Sat, Oct 27, 2001 at 12:21:27AM +0200, Tim Janik wrote:
> so ideally, ::clicked would be RUN_LAST, and GtkToggleButton.clicked()
> would do nothing else than { set_state (!toggle_button->state); },
> same for radio button, so it can be used as a differently drawn
> toggle button.
I'm still not getting why the default of "user code is run
before the state is correct" is considered ideal. The only thing I can
come up with is "in case the user wants to stop the signal".
If the user wants to connect before the state is updated and
happy, I would think it should be *explict*, so that a user likely knows
what they are doing when they choose to do so. Is the motivation for
RUN_LAST merely to avoid having connect_before()?
Joel
--
"You cannot bring about prosperity by discouraging thrift. You cannot
strengthen the weak by weakening the strong. You cannot help the wage earner by
pulling down the wage payer. You cannot further the brotherhood of man by
encouraging class hatred. You cannot help the poor by destroying the rich. You
cannot build character and courage by taking away a man's initiative and
independence. You cannot help men permanently by doing for them what they could
and should do for themselves." --Abraham Lincoln
http://www.jlbec.org/
jlbec evilplan org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]