From 70c8128457d49bf9dde0838470f1b4b363f9aafb Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Mon, 12 Oct 2009 17:05:05 +0100 Subject: [PATCH] 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 --- clutter/clutter-units.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-units.c b/clutter/clutter-units.c index 4831fd17d..cbdb5a0c9 100644 --- a/clutter/clutter-units.c +++ b/clutter/clutter-units.c @@ -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);