Re: GtkExpander/GtkDisclosure
- From: Mark McLoughlin <mark skynet ie>
- To: Matthias Clasen <maclas gmx de>
- Cc: gtk-devel-list gnome org
- Subject: Re: GtkExpander/GtkDisclosure
- Date: 14 Mar 2003 13:17:22 +1300
Hey,
On Fri, 2003-03-14 at 13:14, Matthias Clasen wrote:
> 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.
Oh, I missed the "common" bit in what Owen said - it'll be common in
cases where people want to change the label too - "More details", "Less
Details".
Good Luck,
Mark.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]