Re: bonobo_ui_handler_menu_set_toggle_state




John Sullivan <sullivan@eazel.com> writes:

> The function bonobo_ui_handler_menu_set_toggle_state has an ambiguous title.
> It could either behave as if the user had selected the menu item, or it
> could just change the state of the checkbox widget.
> 
> Currently it behaves as if the user had selected the menu item, but this
> seems like it's the wrong choice. How can a caller set the state of the
> checkbox without actually causing code to run? The same issue exists for the
> radio button items.
> 
> Is this a mistake in Bonobo, or am I overlooking something?

It's done like that because these are the semantics people expect;
this is how Gtk+ operates.  The caller just has to be smart enough to
know when he's initiated the state change himself.

Nat



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