Commit 381954079504d56a53f0719f656ed14964e16fd1
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>
Showing
2 changed files
with
7 additions
and
1 deletions
examples/styling/image-channel-control-impl.cpp
| ... | ... | @@ -234,7 +234,8 @@ void ImageChannelControl::SetProperty( BaseObject* object, Property::Index index |
| 234 | 234 | Property::Map* map = value.GetMap(); |
| 235 | 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 | 240 | break; |
| 240 | 241 | } | ... | ... |
resources/style/style-example-theme-two.json.in