projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removal of Actor::Insert API
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
public-api
/
controls
/
control-impl.cpp
diff --git
a/dali-toolkit/public-api/controls/control-impl.cpp
b/dali-toolkit/public-api/controls/control-impl.cpp
index
74eabcb
..
a346005
100644
(file)
--- a/
dali-toolkit/public-api/controls/control-impl.cpp
+++ b/
dali-toolkit/public-api/controls/control-impl.cpp
@@
-584,8
+584,8
@@
void Control::SetBackgroundColor( const Vector4& color )
Actor actor = CreateBackground(Self(), color );
background.actor = actor;
mImpl->mAddRemoveBackgroundChild = true;
Actor actor = CreateBackground(Self(), color );
background.actor = actor;
mImpl->mAddRemoveBackgroundChild = true;
- //
use insert to guarantee its the first child (so that OVERLAY mode works)
- Self().
Insert( 0,
actor );
+ //
The actor does not need to be inserted to guarantee order.
+ Self().
Add(
actor );
mImpl->mAddRemoveBackgroundChild = false;
}
mImpl->mAddRemoveBackgroundChild = false;
}
@@
-619,8
+619,8
@@
void Control::SetBackgroundImage( Image image )
// Set the background actor before adding so that we do not inform derived classes
background.actor = actor;
mImpl->mAddRemoveBackgroundChild = true;
// 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 mode works)
- Self().
Insert( 0,
actor );
+ //
The actor does not need to be inserted to guarantee order.
+ Self().
Add(
actor );
mImpl->mAddRemoveBackgroundChild = false;
}
mImpl->mAddRemoveBackgroundChild = false;
}