Changes following Allow background property to be set as a URL string 17/100917/1
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Tue, 29 Nov 2016 16:52:31 +0000 (16:52 +0000)
committerKimmo Hoikka <kimmo.hoikka@samsung.com>
Tue, 29 Nov 2016 16:52:31 +0000 (16:52 +0000)
Change-Id: Ia5f1554df7b053252e4185abda89d7dedc3d0d98

examples/bubble-effect/bubble-effect-example.cpp

index 8de8a42..878e933 100644 (file)
@@ -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 )
     {