Re: GtkExpander/GtkDisclosure



On Thu, 2003-03-13 at 16:20, Owen Taylor wrote:

 
> >     Overall though, I think the API should be a simple subset of
> > GtkToggleButton/GtkButton.
> 
> GtkFrame seems more like the closer comparison, as
bin-plus-extra-child.
> 
> > struct _GtkExpanderClass
> > {
> >   GtkBinClass  parent_class;
> > 
> >   void       (*toggled) (GtkExpander *expander);
> 
> I'd say people can just connect to notify::expanded. The duplication
> shouldn't be necessary, and it's not like observing the state of
> the widget is going to be common anyways.
> 

You need to connect to toggled (or notify::expanded) in order to adjust
the size of the toplevel, so I think it will be common.

Matthias 




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