Re: Keynav on togglebuttons



Calum Benson <calum benson sun com> writes:

> Owen Taylor wrote:
> > 
> > Damon recently filed a couple of bugs he noticed porting the widget
> > palette in Glade to GTK+-2.0. (#65723, #65725)
> > 
> > The way the widget palette works is that it is _one_ radio group split
> > over three notebook pages. draw_indicator is FALSE for the radio
> > buttons so they look like normal toggle buttons.
> > 
> > <snip proposed behaviour>
> > 
> > I'd be interested in feedback about how other people think
> > the behavior should be and if this sounds reasonable.
> 
> I'm basically fine with ensuring that things that look like toggle
> buttons behave like toggle buttons.  Although I'm a tad concerned we
> might be patching things up to cope with a somewhat idiosyncratic use of
> standard widgets (splitting a single radio button group over multiple
> notebook tabs)... if real toggle buttons don't do what Damon wanted, we
> should probably have spent some time fixing those instead  :)

Actually, there is not really any such thing as a "real togglebutton"
in GTK+.

GTK+ basically has 

 "check buttons drawn as toggle buttons"

and:

 "radio buttons drawn as toggle buttons"

It turns out that there are two ways to do the former - creating an
instance of GtkToggleButton or a instance of GtkCheckButton with the
"draw_indicator" property set to FALSE. But that's just an artifact of
a silly design choice -- the fact that there is GtkCheckButton _and_
GtkToggleButton really doesn't make much sense.

The primary use radio buttons drawn as toggle buttons is tool palettes
(and also possibly toolbars.)

While using a radio button group across multiple pages of a notebook
sounds really bizarre, I think UI-wise it should be OK for a 
multiple-page palette. But if it doesn't work easily, I'm also
not too concerned if you have to use multiple radio button groups
and synchronize them.

Regards,
                                        Owen



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