[NUI] Change to use GetNativeId() (#1742)
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Wed, 24 Jun 2020 01:35:31 +0000 (10:35 +0900)
committerGitHub <noreply@github.com>
Wed, 24 Jun 2020 01:35:31 +0000 (10:35 +0900)
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.Window.cs
src/Tizen.NUI/src/internal/NUIWindowInfo.cs
src/Tizen.NUI/src/public/Window.cs

index 948e652..0ff8e80 100755 (executable)
@@ -118,9 +118,6 @@ namespace Tizen.NUI
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GetType")]
             public static extern int GetType(global::System.Runtime.InteropServices.HandleRef jarg1);
-                       
-            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GetResourceID")]
-            public static extern int GetResouceID(global::System.Runtime.InteropServices.HandleRef jarg1);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_SetNotificationLevel")]
             public static extern bool SetNotificationLevel(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
index 9d71e20..cb282f5 100755 (executable)
@@ -34,7 +34,7 @@ namespace Tizen.NUI
             {
                 if (_resId == 0)
                 {
-                    _resId = _win.ResourceID;
+                    _resId = _win.GetNativeId();
                     if (_resId != 0)
                         Log.Info(LogTag, "Fail to get resource ID");
                 }
index 2922655..30ffabe 100644 (file)
@@ -236,19 +236,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Get Resource ID of window
-        /// </summary>
-        internal int ResourceID
-        {
-            get
-            {
-                int ret = Interop.Window.GetResouceID(swigCPtr);
-                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-                return ret;
-            }
-        }
-
-        /// <summary>
         /// Gets or sets a window type.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>