From 55c1451a61d288e6fd675ab99b776e494b4c215f Mon Sep 17 00:00:00 2001 From: huiyueun <35286162+huiyueun@users.noreply.github.com> Date: Wed, 24 Jun 2020 10:35:31 +0900 Subject: [PATCH] [NUI] Change to use GetNativeId() (#1742) Signed-off-by: huiyu.eun --- src/Tizen.NUI/src/internal/Interop/Interop.Window.cs | 3 --- src/Tizen.NUI/src/internal/NUIWindowInfo.cs | 2 +- src/Tizen.NUI/src/public/Window.cs | 13 ------------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs index 948e652..0ff8e80 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs @@ -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); diff --git a/src/Tizen.NUI/src/internal/NUIWindowInfo.cs b/src/Tizen.NUI/src/internal/NUIWindowInfo.cs index 9d71e20..cb282f5 100755 --- a/src/Tizen.NUI/src/internal/NUIWindowInfo.cs +++ b/src/Tizen.NUI/src/internal/NUIWindowInfo.cs @@ -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"); } diff --git a/src/Tizen.NUI/src/public/Window.cs b/src/Tizen.NUI/src/public/Window.cs index 2922655..30ffabe 100644 --- a/src/Tizen.NUI/src/public/Window.cs +++ b/src/Tizen.NUI/src/public/Window.cs @@ -236,19 +236,6 @@ namespace Tizen.NUI } /// - /// Get Resource ID of window - /// - internal int ResourceID - { - get - { - int ret = Interop.Window.GetResouceID(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// /// Gets or sets a window type. /// /// 3 -- 2.7.4