Further Setter/Getter public API removal from Dali::Actor
[platform/core/uifw/dali-toolkit.git] / docs / content / programming-guide / event-system.h
index 9e0c1b2..1498ed0 100644 (file)
@@ -73,7 +73,7 @@ void OnPinch( Dali::Actor actor, const Dali::PinchGesture& pinch )
 {
   // Scale your actor according to the pinch scale
   Vector3 newSize = actor.GetCurrentProperty< Vector3 >( Actor::Property::SIZE ) * pinch.scale;
 {
   // Scale your actor according to the pinch scale
   Vector3 newSize = actor.GetCurrentProperty< Vector3 >( Actor::Property::SIZE ) * pinch.scale;
-  actor.SetSize(newSize);
+  actor.SetProperty( Actor::Property::SIZE, newSize );
 }
 
 // Elsewhere
 }
 
 // Elsewhere