mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
[animation] Broken fixed:: properties
This commit yesterday:
89e3e3a4cc
[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 <ebassi@linux.intel.com>
This commit is contained in:
parent
168499742a
commit
2c95b378a5
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user