[Glade-devel] Glade 3.0.1 bugfix release

Damon Chaplin damon at karuna.uklinux.net
Mon Aug 21 06:06:34 EDT 2006


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.

Damon




More information about the Glade-devel mailing list