[Glade-devel] Glade 3.0.1 bugfix release



Damon Chaplin schrieb:
On Sun, 2006-08-20 at 14:06 -0400, Tristan Van Berkom wrote:


  - Adjustments are saved witout floating point precision in the glade 
file (reports of
    glade-- code generator disliking the decimal points).

I think you've misunderstood the bug.

If you look at the output Jesus was seeing, note the commas:

<property name="adjustment">0,000000 0,000000 100,000000 1,000000
10,000000 10,000000</property>

The problem is that you're outputting floats using the current locale
setting, and some locales use commas instead of periods for the decimal
point.

Glade 2 handles this by changing to the "C" locale to save and load the
XML files. But I think Glib now has utility functions to convert floats
to standard strings that you could use instead.

If I understand correctly, there is no need for glade-- to accept 10,0
as a float value, but a glade-3 bug caused this to be written to a
.glade file.

   Christof
(who has admittedly neglected glade-- development in the past year,
simply insist if you need help)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.ximian.com/pipermail/glade-devel/attachments/20060821/6f0a310d/attachment.bin 




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