{
gboolean ret = FALSE;
GtkFormFieldFloatPrivate *priv;
- gchar *value;
+ gfloat value;
gchar *field_name;
g_return_val_if_fail (IS_GTK_FORM_FIELD_FLOAT (field), FALSE);
field_name = gtk_form_field_get_field_name (field);
- value = gdaex_data_model_get_field_value_stringify_at (dm, row, field_name);
+ value = gdaex_data_model_get_field_value_float_at (dm, row, field_name);
- ret = gtk_form_field_float_set_value_stringify (field, value);
+ setlocale (LC_NUMERIC, "");
+ ret = gtk_form_field_float_set_value_stringify (field, g_strdup_printf ("%f", value));
- priv->original_value = g_strtod (value, NULL);
+ priv->original_value = value;
g_free (field_name);
- g_free (value);
return ret;
}