[Glade-devel] Glade 3.0.1 bugfix release



On Mon, 2006-08-21 at 12:24 +0200, Christof Petig wrote:
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.

Yes, it's a glade-3 bug, not a glade-- bug.

Damon






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