[cluttermm] Animatable: Rename gvalue parameters to value.



commit 4f52dd85a364d51e93f1963a19025d343e7e6f89
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 19 10:51:52 2014 +0100

    Animatable: Rename gvalue parameters to value.
    
    This matches the names in the C API (and its documentation) and
    they are not GValues anyway.
    
    Note that we probably need to actually use these in tests to know
    if there are any compiler errors in the code.

 clutter/src/animatable.hg |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/clutter/src/animatable.hg b/clutter/src/animatable.hg
index e3afc22..2782dae 100644
--- a/clutter/src/animatable.hg
+++ b/clutter/src/animatable.hg
@@ -64,10 +64,10 @@ public:
    * Sets the final state for an animation.
    *
    * @param property_name the name of the animatable property to set.
-   * @param gvalue a value of the appropriate type.
+   * @param value a value of the appropriate type.
    */
   template <class ValueType>
-  void set_final_state(const Glib::ustring& property_name, const ValueType& gvalue);
+  void set_final_state(const Glib::ustring& property_name, const ValueType& value);
 
 
   //TODO: Documentation
@@ -75,7 +75,7 @@ public:
   bool interpolate(const Glib::ustring& property_name,
     const Glib::RefPtr<const Interval>& interval,
     double progress,
-    ValueType& gvalue);
+    ValueType& value);
 
 protected:
 
@@ -101,11 +101,11 @@ void Animatable::get_initial_state(const Glib::ustring& property_name, ValueType
 }
 
 template <class ValueType>
-void Animatable::set_final_state(const Glib::ustring& property_name, const ValueType& gvalue)
+void Animatable::set_final_state(const Glib::ustring& property_name, const ValueType& value)
 {
   Glib::Value<ValueType> glibmm_g_value;
   glibmm_g_value.init(Glib::Value<ValueType>::value_type());
-  glibmm_g_value.set(gvalue);
+  glibmm_g_value.set(value);
 
   set_final_state_value(property_name, glibmm_g_value);
 }
@@ -114,11 +114,11 @@ template <class ValueType>
 bool Animatable::interpolate(const Glib::ustring& property_name,
   const Glib::RefPtr<const Interval>& interval,
   double progress,
-  ValueType& gvalue)
+  ValueType& value)
 {
   Glib::Value<ValueType> glibmm_g_value;
   glibmm_g_value.init(Glib::Value<ValueType>::value_type());
-  glibmm_g_value.set(gvalue);
+  glibmm_g_value.set(value);
 
   const bool out = interpolate_value_value(
     gobj(),
@@ -127,7 +127,7 @@ bool Animatable::interpolate(const Glib::ustring& property_name,
     progress,
     glibmm_g_value);
 
-  gvalue = glibmm_g_value.get();
+  value = glibmm_g_value.get();
   return out;
 }
 


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