Re: GtlExpander/GtkDisclosure



On Wed, 2003-03-12 at 23:54, gtk-devel-list-request gnome org wrote:

> > 	I'm not sure there is too much point in enumerating each API until a
> > decision is made on which approach to take.
> 
> My opinion is that if 2) allows for the right visual layout, then
> it is more like the rest of the GTK+ API and probably easier to 
> use as well for the programmer.
> 
> I wouldn't worry too much about the implementation ... API should
> drive implementation not vice-versa. Plus, GtkCheckButton and
> it's base classes are way-overcomplicated.

I agree about API driving implementation - but would point out that in
general, the more you can reuse of the existing widget set, the less ATK
you have to reimplement.  If you use (even a subclass of) GtkCheckbutton
as a child of this widget or even an internal implementation detail
(that doesn't look like a normal GtkBin child), you can reuse more of
GAIL by just proxying the ATK stuff from gailcheckbutton out through the
expander's ATK interfaces.

You will have to make that call; for something like checkbutton it might
not be a big deal, whereas reimplementing something like AtkText or
AtkTable would be a big PITA if you had the choice of reusing or
proxying an existing implementation instead.

-Bill

> 
> Regards,
>                                            Owen

-- 
Bill Haneman <bill haneman sun com>




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