Re: Setting size of SpinButton



Paul Davis <pbd Op Net> writes: 
> except that its far from clear what you use it for. if you set the
> usize of the spinbutton, it will still be too small, because of the
> space taken by the arrows. a real annoyance.
> 

Presumably the 2.0 API would be something like
gtk_spin_button_set_char_size() and would take the arrows into
account. I suppose for the spin button you could actually just measure
the upper/lower values and use the size from that, come to think of
it. Hmm. Breaks if you are using the "input" and "output" signals
though.

For 1.2, yeah you have to add extra pixels for the arrows.

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. ;-)

We have religiously attempted to fix API to respond to all "how do I?"
questions where the GTK 1.2 answer was lame.

Havoc




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