Re: Setting size of SpinButton



Lars Clausen <lrclause cs uiuc edu> writes: 
> > I know there will be a bunch of little stuff like this that we forget
> > for 2.0 and then kick ourselves having to answer the FAQ for the next
> > year or two - everyone please query bugzilla.gnome.org for the "2.0
> > API freeze" milestone and be sure your favorite fix-FAQ-via-API-change
> > requests are in there or in the devel code itself. ;-)
> 
> I'm wondering why this should be an API change?  Shouldn't the spinbutton
> resize itself automatically?  It knows what its bounds are anyway.
> 

The spinbutton "input" and "output" signals let you change what text
represents a value - e.g. look at testgtk, the spinbutton contains the
months of the year spelled out as "January", "February", etc. So
there's no way to get the size in that case.

I guess you could have the spinbutton always do its size based on
numbers, and for the weird cases people have to set usize. Would have
to think through the implications.

Havoc




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