Re: Setting size of SpinButton



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.

Havoc




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