[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 78f8ac4bca2b29780c4856f6e1751ffd43dc241c..ba94e053d5c5716408d0ac588b090a4600eb9810 100644 (file)
@@ -210,9 +210,31 @@ 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 5ff64435192230be3362639abedbc6dd643fbb18..bbf0bb3d3ccdf083b50f757d9397e6b8224eabe8 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 80ff34899f810d5d374ba2f4e4d01bae1dd251dd..5e9d9a9873e081515aeaacc406cc7cf2d833c9f0 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 0c266d39d7e47e141145234c532ec214e16b29c5..176cd66102cbda974d90ff4b4695d43b2e92d117 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;
         }