Added ImageView::OnStageConnect to pass the onstage event to the renderer. 39/49039/2
authorChu Hoang <c.hoang@samsung.com>
Mon, 5 Oct 2015 15:34:34 +0000 (16:34 +0100)
committerChu Hoang <c.hoang@samsung.com>
Tue, 6 Oct 2015 12:37:57 +0000 (13:37 +0100)
Change-Id: If7ef493d065b4a1b3b67bb0b1a6fdef91a2762d1

dali-toolkit/internal/controls/image-view/image-view-impl.cpp
dali-toolkit/internal/controls/image-view/image-view-impl.h

index 554469b..9f7294b 100644 (file)
@@ -222,6 +222,16 @@ void ImageView::OnStageConnection( int depth )
   }
 }
 
   }
 }
 
+void ImageView::OnStageDisconnection()
+{
+  if( mRenderer )
+  {
+    CustomActor self = Self();
+    mRenderer.SetOffStage( self );
+  }
+}
+
+
 ///////////////////////////////////////////////////////////
 //
 // Properties
 ///////////////////////////////////////////////////////////
 //
 // Properties
index 3af21ce..92c7f70 100644 (file)
@@ -102,6 +102,11 @@ private: // From Control
   virtual void OnStageConnection( int depth );
 
   /**
   virtual void OnStageConnection( int depth );
 
   /**
+   * @copydoc Toolkit::Control::OnStageDisconnection()
+   */
+  virtual void OnStageDisconnection();
+
+  /**
    * @copydoc Toolkit::Control::GetNaturalSize
    */
   virtual Vector3 GetNaturalSize();
    * @copydoc Toolkit::Control::GetNaturalSize
    */
   virtual Vector3 GetNaturalSize();