Handle float and uint style properties

These were giving errors in testgtk.
This commit is contained in:
Matthias Clasen 2010-11-17 00:21:21 -05:00 committed by Carlos Garnacho
parent f0eafe60f8
commit 627b33265b

View File

@ -2467,8 +2467,12 @@ css_provider_parse_value (GtkCssProvider *css_provider,
}
else if (type == G_TYPE_INT)
g_value_set_int (value, atoi (value_str));
else if (type == G_TYPE_UINT)
g_value_set_uint (value, (guint) atoi (value_str));
else if (type == G_TYPE_DOUBLE)
g_value_set_double (value, g_ascii_strtod (value_str, NULL));
else if (type == G_TYPE_FLOAT)
g_value_set_float (value, (gfloat) g_ascii_strtod (value_str, NULL));
else if (type == GTK_TYPE_THEMING_ENGINE)
{
GtkThemingEngine *engine;