Re: double IEEE precission with spin buttons



Andrej Prsa <andrej prsa guest arnes si> writes:
> 
> I'm a newbie to gtk+ programming (started only yesterday ;) ), but
> after few hours of trying to invent hot water I gave up and figured
> I should ask:
> 
> How do I get double precission with spin buttons? I have to enter
> Julian dates, which are something like "2448500.165143", so I have
> to fit them to long float at least. Please help! :)
> 

You can't do this; your only real option is to cut-and-paste the spin
button and GtkAdjustment code out of GTK and modify it.

In GTK 2, GtkAdjustment uses double instead of float, but this doesn't
help you with GTK 1.2.

Havoc





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