Removed use of VisualFactory::InitializeVisual 63/96063/1
authorDavid Steele <david.steele@partner.samsung.com>
Mon, 7 Nov 2016 13:33:11 +0000 (13:33 +0000)
committerDavid Steele <david.steele@partner.samsung.com>
Mon, 7 Nov 2016 13:33:11 +0000 (13:33 +0000)
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
resources/style/style-example-theme-two.json.in

index 0d19830..1b3c9e1 100644 (file)
@@ -234,7 +234,8 @@ void ImageChannelControl::SetProperty( BaseObject* object, Property::Index index
         Property::Map* map = value.GetMap();
         if( map )
         {
-          Dali::Toolkit::InitializeVisual( self, impl.mVisual, *map );
+          impl.mVisual = Toolkit::VisualFactory::Get().CreateVisual( *map );
+          impl.RegisterVisual( Demo::ImageChannelControl::Property::IMAGE_VISUAL, impl.mVisual );
         }
         break;
       }
index 9a99988..f5b194d 100644 (file)
               "delay":0
             }
           }
+        },
+        {
+          "target":"imageVisual",
+          "property":"scale",
+          "targetValue":[1,1,1]
         }
       ],
       "disableVisibilityTransition":