Fix activate action on Control 59/24159/1
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Thu, 12 Jun 2014 09:58:19 +0000 (10:58 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 8 Jul 2014 17:47:00 +0000 (18:47 +0100)
Change-Id: Ia3d2c920984a2dc322a9a9765818835706f1bc6d
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
base/dali-toolkit/public-api/controls/control-impl.cpp
capi/dali-toolkit/public-api/controls/control-impl.h

index 6f9275c..9d64b1f 100644 (file)
@@ -901,12 +901,17 @@ bool Control::DoAction(BaseObject* object, const std::string& actionName, const
 {
   bool ret = false;
 
 {
   bool ret = false;
 
-  return ret;
-}
+  if( object && (actionName == Toolkit::Control::ACTION_CONTROL_ACTIVATED) )
+  {
+    Toolkit::Control control = Toolkit::Control::DownCast( BaseHandle( object ) );
+    if( control )
+    {
+      // if cast succeeds there is an implementation so no need to check
+      control.GetImplementation().OnActivated();
+    }
+  }
 
 
-void Control::DoActivatedAction(const PropertyValueContainer& attributes)
-{
-  OnActivated();
+  return ret;
 }
 
 void Control::DoStyleChange( Toolkit::StyleManager styleManager, StyleChange change )
 }
 
 void Control::DoStyleChange( Toolkit::StyleManager styleManager, StyleChange change )
index ac38162..e989b77 100644 (file)
@@ -536,13 +536,6 @@ private: // From CustomActorImpl, derived classes can override these.
 private:
 
   /**
 private:
 
   /**
-   * @brief Perform the activated action.
-   *
-   * @param[in] attributes The attributes to perfrom this action.
-   */
-  void DoActivatedAction(const PropertyValueContainer& attributes);
-
-  /**
    * @brief This method is the callback for the StyleChangeSignal from StyleManager
    *
    * @param[in] styleManager The StyleManager Object
    * @brief This method is the callback for the StyleChangeSignal from StyleManager
    *
    * @param[in] styleManager The StyleManager Object