From 2c95b378a598c81ea29ffe129fedb9fc54281f9c Mon Sep 17 00:00:00 2001 From: Geoff Gustafson Date: Tue, 10 Mar 2009 14:25:37 -0700 Subject: [PATCH] [animation] Broken fixed:: properties This commit yesterday: 89e3e3a4cc06c10c2573f3d115c5b03ee4890524 [animation] Add vector variants for ::animate() broke the "fixed::" attribute on properties in clutter_actor_animate(), because the fixed:: part is still on the string when it checks to see if it's a valid property the class knows about. Signed-off-by: Emmanuele Bassi --- clutter/clutter-animation.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clutter/clutter-animation.c b/clutter/clutter-animation.c index a5df67bb3..628ba0af9 100644 --- a/clutter/clutter-animation.c +++ b/clutter/clutter-animation.c @@ -1267,6 +1267,9 @@ clutter_animation_setupv (ClutterAnimation *animation, const gchar *property_name = properties[i]; GParamSpec *pspec; + if (g_str_has_prefix (property_name, "fixed::")) + property_name += 7; /* strlen("fixed::") */ + pspec = g_object_class_find_property (klass, property_name); if (!pspec) { @@ -1301,6 +1304,9 @@ clutter_animation_setup_valist (ClutterAnimation *animation, GValue final = { 0, }; gchar *error = NULL; + if (g_str_has_prefix (property_name, "fixed::")) + property_name += 7; /* strlen("fixed::") */ + pspec = g_object_class_find_property (klass, property_name); if (!pspec) {