Merge "Removal of Actor::Insert API" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 14 Jul 2015 17:49:25 +0000 (10:49 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 14 Jul 2015 17:49:26 +0000 (10:49 -0700)
1  2 
dali-toolkit/public-api/controls/control-impl.cpp

@@@ -584,8 -584,8 +584,8 @@@ void Control::SetBackgroundColor( cons
      Actor actor = CreateBackground(Self(), color );
      background.actor = actor;
      mImpl->mAddRemoveBackgroundChild = true;
-     // use insert to guarantee its the first child (so that OVERLAY_2D mode works)
-     Self().Insert( 0, actor );
+     // The actor does not need to be inserted to guarantee order.
+     Self().Add( actor );
      mImpl->mAddRemoveBackgroundChild = false;
    }
  
@@@ -619,8 -619,8 +619,8 @@@ void Control::SetBackgroundImage( Imag
     // Set the background actor before adding so that we do not inform derived classes
     background.actor = actor;
     mImpl->mAddRemoveBackgroundChild = true;
-    // use insert to guarantee its the first child (so that OVERLAY_2D mode works)
-    Self().Insert( 0, actor );
+    // The actor does not need to be inserted to guarantee order.
+    Self().Add( actor );
     mImpl->mAddRemoveBackgroundChild = false;
  }
  
@@@ -875,7 -875,7 +875,7 @@@ void Control::Initialize(
        styleManager.StyleChangeSignal().Connect( this, &Control::OnStyleChange );
  
        // Apply the current style
 -      GetImpl( styleManager ).ApplyThemeStyle( Toolkit::Control( GetOwner() ) );
 +      GetImpl( styleManager ).ApplyThemeStyleAtInit( Toolkit::Control( GetOwner() ) );
      }
    }