From: Kimmo Hoikka Date: Tue, 29 Nov 2016 16:52:31 +0000 (+0000) Subject: Changes following Allow background property to be set as a URL string X-Git-Tag: dali_1.2.17~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a30bcc247f2726235baaba0406f829ddf0815d91;hp=8841ed7ccb5284d5022dc3a59de7ad9a4f657b0e;p=platform%2Fcore%2Fuifw%2Fdali-demo.git Changes following Allow background property to be set as a URL string Change-Id: Ia5f1554df7b053252e4185abda89d7dedc3d0d98 --- diff --git a/examples/bubble-effect/bubble-effect-example.cpp b/examples/bubble-effect/bubble-effect-example.cpp index 8de8a42..878e933 100644 --- a/examples/bubble-effect/bubble-effect-example.cpp +++ b/examples/bubble-effect/bubble-effect-example.cpp @@ -140,9 +140,7 @@ private: content.Add( bubbleRoot ); // Set the application background - mBackground.SetProperty( Toolkit::Control::Property::BACKGROUND, Dali::Property::Map() - .Add( Dali::Toolkit::Visual::Property::TYPE, Dali::Toolkit::Visual::IMAGE ) - .Add( Dali::Toolkit::ImageVisual::Property::URL, BACKGROUND_IMAGES[mCurrentBackgroundImageId] )); + mBackground.SetProperty( Toolkit::Control::Property::BACKGROUND, BACKGROUND_IMAGES[ mCurrentBackgroundImageId ] ); // Set up the timer to emit bubble regularly when the finger is touched down but not moved mTimerForBubbleEmission = Timer::New( mTimerInterval ); @@ -258,9 +256,7 @@ private: mBubbleEmitter.SetBackground( DemoHelper::LoadStageFillingTexture( BACKGROUND_IMAGES[ mCurrentBackgroundImageId ] ), mHSVDelta ); // Set the application background - mBackground.SetProperty( Toolkit::Control::Property::BACKGROUND, Dali::Property::Map() - .Add( Dali::Toolkit::Visual::Property::TYPE, Dali::Toolkit::Visual::IMAGE ) - .Add( Dali::Toolkit::ImageVisual::Property::URL, BACKGROUND_IMAGES[mCurrentBackgroundImageId] )); + mBackground.SetProperty( Toolkit::Control::Property::BACKGROUND, BACKGROUND_IMAGES[ mCurrentBackgroundImageId ] ); } else if( button == mChangeBubbleShapeButton ) {