X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol-impl.cpp;h=16b4e6738493aaa88c80ffa9845f6755444aedc8;hp=216491b2ee31b6c8896d817071d584699b3bda34;hb=4b347781c8761d2909b235ded2e98d272fa9ac16;hpb=56d412791a44c2a79135d2293c13fddb135c9d54 diff --git a/dali-toolkit/public-api/controls/control-impl.cpp b/dali-toolkit/public-api/controls/control-impl.cpp index 216491b..16b4e67 100644 --- a/dali-toolkit/public-api/controls/control-impl.cpp +++ b/dali-toolkit/public-api/controls/control-impl.cpp @@ -19,10 +19,11 @@ #include // EXTERNAL INCLUDES +#include // for strcmp +#include #include #include #include -#include #include #include #include @@ -140,10 +141,11 @@ void SetupBackgroundActor( Actor actor, Property::Index constrainingIndex, const actor.SetZ( BACKGROUND_ACTOR_Z_POSITION ); actor.SetRelayoutEnabled( false ); - Constraint constraint = Constraint::New( constrainingIndex, - ParentSource( Actor::Property::SIZE ), + Constraint constraint = Constraint::New( actor, + constrainingIndex, EqualToConstraint() ); - actor.ApplyConstraint( constraint ); + constraint.AddSource( ParentSource( Actor::Property::SIZE ) ); + constraint.Apply(); } } // unnamed namespace