[clutter/clutter-1.14] actor: Use the correct return value



commit 8b458d401c6508e97ce5c85eaf910e7a0fc2cbac
Author: Josselin Mouette <joss malsain org>
Date:   Wed Feb 20 22:20:22 2013 +0000

    actor: Use the correct return value
    
    The get_z_rotation_gravity() method returns an enumeration value, not a
    floating point value.
    
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694187

 clutter/clutter-actor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 33a58ae..1d87837 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -11985,7 +11985,7 @@ clutter_actor_get_z_rotation_gravity (ClutterActor *self)
 {
   const ClutterTransformInfo *info;
 
-  g_return_val_if_fail (CLUTTER_IS_ACTOR (self), 0.0);
+  g_return_val_if_fail (CLUTTER_IS_ACTOR (self), CLUTTER_GRAVITY_NONE);
 
   info = _clutter_actor_get_transform_info_or_defaults (self);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]