__status = status;
pEcoreEvas->AllowSetWindowBounds(false);
- FireEvent(status);
+ FireEvent(status, true);
pEcoreEvas->AllowSetWindowBounds(true);
// For the form to be made by Ui-Builder
}
void
-_OrientationAgent::FireEvent(OrientationStatus status)
+_OrientationAgent::FireEvent(OrientationStatus status, bool callback)
{
ClearLastResult();
_Window* pOwnee = pImpl->GetCore().GetOwnee(i);
if (pOwnee)
{
- pOwnee->ChangeLayout(coreOrientation); // Need to test
+ if (!((callback == true) && (pOwnee->IsRotationSynchronized() == true)))
+ {
+ pOwnee->ChangeLayout(coreOrientation);
+ }
+
pEcoreEvas->SetOwner(*pOwnee, pImpl->GetCore());
}
}
_Window* pOwnee = pParent->GetOwnee(i);
if (pOwnee)
{
- pOwnee->ChangeLayout(coreOrientation); // Need to test
+ if (!((callback == true) && (pOwnee->IsRotationSynchronized() == true)))
+ {
+ pOwnee->ChangeLayout(coreOrientation);
+ }
+
pEcoreEvas->SetOwner(*pOwnee, *pParent);
}
}
void FireOrientationEvent(void);
private:
- void FireEvent(OrientationStatus status);
+ void FireEvent(OrientationStatus status, bool callback = false);
_OrientationAgent(Control& publicControl);