[NUI.WindowSystem] Add SetSecondarySelection and UnsetSecondarySelection to fix typo
authorJunseok Kim <juns.kim@samsung.com>
Wed, 1 Nov 2023 05:27:06 +0000 (14:27 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 2 Nov 2023 04:18:20 +0000 (13:18 +0900)
Add new requests SetSecondarySelection and UnsetSecondarySelection to alternate requests
SetSecondarySelction and UnsetSecondarySelction that have typo.

After all caller that typo requests have been removed, the typo request have been removed.

src/Tizen.NUI.WindowSystem/src/public/KVMService.cs
src/Tizen.NUI/src/public/Clipboard/ClipboardEvent.cs
test/NUIClipboardDataSelected/ClipboardDataSelected.cs
test/NUIWindowKVMSample/NUIWindowKVMSample.cs

index 78f8ac4..ba94e05 100644 (file)
@@ -210,10 +210,32 @@ namespace Tizen.NUI.WindowSystem.Shell
 
         /// <summary>
         /// Requests to set KVM window as secondary selection window.
+        /// The request name has typo and will remove soon.
+        /// Please use SetSecondarySelection.
         /// </summary>
         /// <exception cref="ArgumentException">Thrown when failed of invalid argument.</exception>
         public void SetSecondarySelction()
         {
+           SetSecondarySelection();
+        }
+
+        /// <summary>
+        /// Requests to unset secondary selection window of KVM window.
+        /// The request name has typo and will remove soon.
+        /// Please use UnsetSecondarySelection.
+        /// </summary>
+        /// <exception cref="ArgumentException">Thrown when failed of invalid argument.</exception>
+        public void UnsetSecondarySelction()
+        {
+           UnsetSecondarySelection();
+        }
+
+        /// <summary>
+        /// Requests to set KVM window as secondary selection window.
+        /// </summary>
+        /// <exception cref="ArgumentException">Thrown when failed of invalid argument.</exception>
+        public void SetSecondarySelection()
+        {
             int res = Interop.KVMService.SetSecondarySelection(_kvmService);
             _tzsh.ErrorCodeThrow(res);
         }
@@ -222,7 +244,7 @@ namespace Tizen.NUI.WindowSystem.Shell
         /// Requests to unset secondary selection window of KVM window.
         /// </summary>
         /// <exception cref="ArgumentException">Thrown when failed of invalid argument.</exception>
-        public void UnsetSecondarySelction()
+        public void UnsetSecondarySelection()
         {
             int res = Interop.KVMService.UnsetSecondarySelection(_kvmService);
             _tzsh.ErrorCodeThrow(res);
index 5ff6443..bbf0bb3 100755 (executable)
@@ -98,7 +98,7 @@ namespace Tizen.NUI
         /// <example>
         /// The following example demonstrates how to use the DataSelected.
         /// <code>
-        /// kvmService.SetSecondarySelction(); // precondition
+        /// kvmService.SetSecondarySelection(); // precondition
         ///
         /// Clipboard.Instance.DataSelected += (s, e) =>
         /// {
index 80ff348..5e9d9a9 100644 (file)
@@ -35,7 +35,7 @@ namespace NUIClipboardDataSelected
             Tizen.NUI.WindowSystem.Shell.KVMService kvmService;
             // Window that will act as KVM Service.
             kvmService = new Tizen.NUI.WindowSystem.Shell.KVMService(tzShell, Window.Instance); 
-            kvmService.SetSecondarySelction();
+            kvmService.SetSecondarySelection();
 
             // This view has nothing to do with this test, just for easy debugging.
             // If there is a view, it is exposed to the process monitor.
index 0c266d3..176cd66 100644 (file)
@@ -118,7 +118,7 @@ namespace NUIWindowKVMSample
 
             tzShell = new Tizen.NUI.WindowSystem.Shell.TizenShell();
             kvmService = new Tizen.NUI.WindowSystem.Shell.KVMService(tzShell, this);
-            kvmService.SetSecondarySelction();
+            kvmService.SetSecondarySelection();
             kvmService.DragStarted += OnDragStarted;
             kvmService.DragEnded += OnDragEnded;
         }