Commit 381954079504d56a53f0719f656ed14964e16fd1

Authored by David Steele
1 parent 628594a0

Removed use of VisualFactory::InitializeVisual

Styling currently uses InitalizeVisual rather than a CreateVisual and RegisterVisual pair.
We want to eventually remove InitializeVisual, so pre-emptively removing it's use.

Change-Id: I335afadc01060b477dd9420f30b97d3b953c37ea
Signed-off-by: David Steele <david.steele@samsung.com>
examples/styling/image-channel-control-impl.cpp
@@ -234,7 +234,8 @@ void ImageChannelControl::SetProperty( BaseObject* object, Property::Index index @@ -234,7 +234,8 @@ void ImageChannelControl::SetProperty( BaseObject* object, Property::Index index
234 Property::Map* map = value.GetMap(); 234 Property::Map* map = value.GetMap();
235 if( map ) 235 if( map )
236 { 236 {
237 - Dali::Toolkit::InitializeVisual( self, impl.mVisual, *map ); 237 + impl.mVisual = Toolkit::VisualFactory::Get().CreateVisual( *map );
  238 + impl.RegisterVisual( Demo::ImageChannelControl::Property::IMAGE_VISUAL, impl.mVisual );
238 } 239 }
239 break; 240 break;
240 } 241 }
resources/style/style-example-theme-two.json.in
@@ -111,6 +111,11 @@ @@ -111,6 +111,11 @@
111 "delay":0 111 "delay":0
112 } 112 }
113 } 113 }
  114 + },
  115 + {
  116 + "target":"imageVisual",
  117 + "property":"scale",
  118 + "targetValue":[1,1,1]
114 } 119 }
115 ], 120 ],
116 "disableVisibilityTransition": 121 "disableVisibilityTransition":