Fix warning message in the ParamSpec validation

When validating a new GValue against the ClutterParamSpecUnits, we issue
a warning when the units do not match with both the new value and the
unit we expect to have. Unfortunately we were printing the unit of the
new value twice and not the unit of the ParamSpec.

http://bugzilla.openedhand.com/show_bug.cgi?id=1846
This commit is contained in:
Damien Lespiau 2009-10-12 17:05:05 +01:00 committed by Emmanuele Bassi
parent 83b4ec7a12
commit 70c8128457

View File

@ -816,7 +816,7 @@ param_units_validate (GParamSpec *pspec,
g_warning ("The units value of '%s' does not have the same unit "
"type as declared by the ClutterParamSpecUnits of '%s'",
str,
clutter_unit_type_name (otype));
clutter_unit_type_name (uspec->default_type));
g_free (str);