Commit 537b5068b1cfeb48f17588ab12940eb1515b7bf8
1 parent
0cf88cf7
Remove incorrect placement actor from the RegisterVisual API
Change-Id: I0eed4a040cb86468fb649a062b6d3f2f2b13dbd1
Showing
1 changed file
with
2 additions
and
2 deletions
examples/styling/image-channel-control-impl.cpp
| ... | ... | @@ -97,8 +97,8 @@ void ImageChannelControl::SetImage( const std::string& url ) |
| 97 | 97 | properties[Dali::Toolkit::Visual::Property::SHADER]=shader; |
| 98 | 98 | properties[Dali::Toolkit::ImageVisual::Property::URL] = url; |
| 99 | 99 | |
| 100 | - Dali::Toolkit::InitializeVisual( self, mVisual, properties ); | |
| 101 | - RegisterVisual( Demo::ImageChannelControl::Property::IMAGE_VISUAL, self, mVisual ); | |
| 100 | + mVisual = Toolkit::VisualFactory::Get().CreateVisual( properties ); | |
| 101 | + RegisterVisual( Demo::ImageChannelControl::Property::IMAGE_VISUAL, mVisual ); | |
| 102 | 102 | mVisual.SetName("imageVisual"); |
| 103 | 103 | |
| 104 | 104 | RelayoutRequest(); | ... | ... |