From: dongsug.song Date: Tue, 16 Jan 2018 12:24:36 +0000 (+0900) Subject: Revert "[Tizen.NUI]Fix bug about Children property. (#23)" X-Git-Tag: submit/tizen_4.0/20180118.063616~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7738489d643b834dae4e95a88adf3783fe42786;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Revert "[Tizen.NUI]Fix bug about Children property. (#23)" This reverts commit 6d306df109b452d8f03bc28180b56bf38fd4ed2d. Change-Id: Idda1fef3523dbaa4de243219d71a09c95a98bc6a --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index d66053ca9..bd51f9bd7 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -49,18 +49,11 @@ namespace Tizen.NUI.BaseComponents /// 4 public override void Add(View child) { - Container oldParent = child.Parent; - if(oldParent != this) - { - if (oldParent != null) - { - oldParent.Remove(child); - } - NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child)); - if (NDalicPINVOKE.SWIGPendingException.Pending) - throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - Children.Add(child); - } + NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child)); + if (NDalicPINVOKE.SWIGPendingException.Pending) + throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + + Children.Add(child); } /// @@ -3708,22 +3701,6 @@ namespace Tizen.NUI.BaseComponents } } - - /// - /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")] - /// - /// 3 - [Obsolete("Please do not use! This will be deprecated! Please use Visibility instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Visible - { - get - { - return IsVisible(); - } - } - - /// /// Gets the view's world color. /// diff --git a/src/Tizen.NUI/src/public/Layer.cs b/src/Tizen.NUI/src/public/Layer.cs index ab65d8417..3a4b84d86 100755 --- a/src/Tizen.NUI/src/public/Layer.cs +++ b/src/Tizen.NUI/src/public/Layer.cs @@ -49,18 +49,11 @@ namespace Tizen.NUI /// 4 public override void Add(View child) { - Container oldParent = child.GetParent(); - if (oldParent != this) - { - if (oldParent != null) - { - oldParent.Remove(child); - } - NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child)); - if (NDalicPINVOKE.SWIGPendingException.Pending) - throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - Children.Add(child); - } + NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child)); + if (NDalicPINVOKE.SWIGPendingException.Pending) + throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + + Children.Add(child); } ///