The use of gfloats in GtkAdjustment



As of Gtk+ 1.3.1 I've noticed that GtkAdjustment is defined using
gfloats.  This can cause problems when used to scroll windows with big
(32bit) sizes.  4-byte floats only have enough precision to store about 7
digits (base 10).  Therefore, once the window size is bigger than about
2^25, there won't be enough precision in GtkAdjustment to scroll the
window properly using the left and right arrows (assuming the left+right
scroll is less than ~ 2^(32-25)).

I have not yet hit this limitation, but theoretically it's there.  Just a
heads up...

- David





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