[NUI] Fix FeedKeyEvent issue 30/159330/2
authorxb.teng <xb.teng@samsung.com>
Wed, 8 Nov 2017 07:43:18 +0000 (15:43 +0800)
committerXianbing Teng <xb.teng@samsung.com>
Wed, 8 Nov 2017 07:40:45 +0000 (07:40 +0000)
1. Change FeedKeyEvent api to non-static,
2. Fix FeedKeyEvent crash

Change-Id: I6d6a4bb8468b0cae772c39849b56ba770e18f1a3

src/Tizen.NUI/src/internal/ManualPINVOKE.cs
src/Tizen.NUI/src/public/Window.cs [changed mode: 0644->0755]

index 13a3bc2..1b75ff9 100755 (executable)
@@ -850,7 +850,7 @@ namespace Tizen.NUI
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Window_SetTransparency")]
         public static extern global::System.IntPtr SetTransparency(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
 
-        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Adaptor_FeedKeyEvent")]
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Window_FeedKeyEvent")]
         public static extern void Window_FeedKeyEvent(global::System.Runtime.InteropServices.HandleRef jarg1);
 
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_MakeCallback")]
old mode 100644 (file)
new mode 100755 (executable)
index 5cae4d9..3adf2a5
@@ -1668,7 +1668,7 @@ namespace Tizen.NUI
         /// Feed a key-event into the window.
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
-        public static void FeedKeyEvent(Key keyEvent)
+        public void FeedKeyEvent(Key keyEvent)
         {
             NDalicManualPINVOKE.Window_FeedKeyEvent(Key.getCPtr(keyEvent));
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();