diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-12-20 10:02:00 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-12-20 10:02:00 -0500 |
commit | 183bf8ac9dfac28f31f9f5fb4dfcb2150d1d9fb1 (patch) | |
tree | c4049c0a34e6d38bb98f5d91b6ce421b3ae215d0 /gtk/gtkcellrendererspin.c | |
parent | a9753ef5c65ad4d3217bed05b112f4bc4f71bb89 (diff) | |
download | gtk+-183bf8ac9dfac28f31f9f5fb4dfcb2150d1d9fb1.tar.gz |
Use g_strtod when converting strings for GtkCellRendererSpin
These strings are likely user-provided values, so we should
respect locale settings.
Reported in bug 637189.
Diffstat (limited to 'gtk/gtkcellrendererspin.c')
-rw-r--r-- | gtk/gtkcellrendererspin.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/gtkcellrendererspin.c b/gtk/gtkcellrendererspin.c index 2a7fc10ddf..fc170bd966 100644 --- a/gtk/gtkcellrendererspin.c +++ b/gtk/gtkcellrendererspin.c @@ -323,9 +323,11 @@ gtk_cell_renderer_spin_start_editing (GtkCellRenderer *cell, g_object_get (cell_text, "text", &text, NULL); if (text) - gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), - g_ascii_strtod (text, NULL)); - g_free (text); + { + gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), + g_strtod (text, NULL)); + g_free (text); + } g_object_set_data_full (G_OBJECT (spin), GTK_CELL_RENDERER_SPIN_PATH, g_strdup (path), g_free); |