Re: background/font capplets



Seth Nickell <snickell stanford edu> writes:

> On Wed, 2002-03-13 at 16:12, Richard Hestilow wrote:
> > On Wed, 2002-03-13 at 17:50, Seth Nickell wrote:
> > > Which would be a lovely case of changing the interface to match ease of
> > > implementation (and silly too since the implementation work is already
> > > done).
> > > 
> > > bad hacker, no biscuit ;)
> > > 
> > (this is getting increasingly-off topic but I'll bite)
> > I'd actually argue that the use of toggle buttons in a context which,
> > 99% of the time, would normally be implemented using radio buttons or an
> > option menu counts as an inconsistent and potentially confusing UI.
> 
> Using toggle buttons as radio boxes is both HIG compliant, and not
> uncommon in other systems. Its probably not used much in GNOME because
> its a little tricky to implement without getting nasty signal loops.
> 
> "Only use toggle buttons in groups, so they are not mistaken for regular
> buttons. Make the group behave like either a group of check boxes where
> none, one or more of the buttons may be set at once, or a group of radio
> buttons, where exactly one button may be set at once, and setting one
> button unsets the others."
> 
> In general, radio buttons are the preferred control, but the image/label
> mix works better with toggle buttons in this case.

OK, without regard to the UI goodness or badness, if you want to do
this, use radio buttons and:

void       gtk_toggle_button_set_mode          (GtkToggleButton *toggle_button,
                                                gboolean         draw_indicator);

Please don't try to emulate radio button groups yourself.

Regards,
                                        Owen





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