Re: Setting size of SpinButton



In message <y5wpuh3vfma fsf icon labs redhat com>you write:
>
>Lars Clausen <lrclause cs uiuc edu> writes:
>> I'm looking at a SpinButton that goes from -100.0 to 100.0, and the Entry
>> field turns out too small -- when you're at -10.0 or below, the digits get
>> cut off.  From the spinbutton example in the tutorial, I just see the
>> gtk_widget_set_usize, which is not friendly to different fonts etc.  Is
>> there a way I can say 'This spinbutton should be large enough to
>> accommodate "-100.0"'?
>> 
>
>Not really, though we have a bug filed to implement that for 2.0. At
>the moment you would need to get gdk_string_width() for -100.0 using
>widget->style->font.

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.

--p




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