Re: [gtk-list] Double float for spinbutton.adjustment.value ?



I too have some could that would be radically simplified
with a double-based GtkAdjustment.

You see in my application there is a "rate" slider
which the user can manually fiddle with.
There is also a "synchronize rates" button that computes
the rate from other sources.

For this latter computation high-precision is needed.
And I think it cannot be needed in the former case,
since the ui widgets aren't really sufficient for entering
that accurate of a number.  I guess this is a rationale for
using gfloats in GtkAdjustment...

So in my application I keep a double outside the adjustment
and set a flag whether to use the double or the float.
A hack, but it works.

- Dave

On Wed, 24 Nov 1999, Jorge Sousa wrote:

> Hello,
> 
> For scientific applications where numbers may have more than 8 decimal
> digits it could be helpfull if the value of a spinbutton is a double float.
> Is it possible to change the type using a function call or the gtk+ code
> must be changed and the library recompiled?
> 
> Thanks
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 



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