Commit 183bf8ac authored by Matthias Clasen's avatar Matthias Clasen
Browse files

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.
parent a9753ef5
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment