From 1a1477c0c75c369547427261a0b9d809025fcab2 Mon Sep 17 00:00:00 2001 From: Junseok Kim Date: Wed, 1 Nov 2023 14:27:06 +0900 Subject: [PATCH] [NUI.WindowSystem] Add SetSecondarySelection and UnsetSecondarySelection to fix typo 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/public/KVMService.cs | 24 +++++++++++++++++++++- .../src/public/Clipboard/ClipboardEvent.cs | 2 +- .../ClipboardDataSelected.cs | 2 +- test/NUIWindowKVMSample/NUIWindowKVMSample.cs | 2 +- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/Tizen.NUI.WindowSystem/src/public/KVMService.cs b/src/Tizen.NUI.WindowSystem/src/public/KVMService.cs index 78f8ac4..ba94e05 100644 --- a/src/Tizen.NUI.WindowSystem/src/public/KVMService.cs +++ b/src/Tizen.NUI.WindowSystem/src/public/KVMService.cs @@ -210,10 +210,32 @@ namespace Tizen.NUI.WindowSystem.Shell /// /// Requests to set KVM window as secondary selection window. + /// The request name has typo and will remove soon. + /// Please use SetSecondarySelection. /// /// Thrown when failed of invalid argument. public void SetSecondarySelction() { + SetSecondarySelection(); + } + + /// + /// Requests to unset secondary selection window of KVM window. + /// The request name has typo and will remove soon. + /// Please use UnsetSecondarySelection. + /// + /// Thrown when failed of invalid argument. + public void UnsetSecondarySelction() + { + UnsetSecondarySelection(); + } + + /// + /// Requests to set KVM window as secondary selection window. + /// + /// Thrown when failed of invalid argument. + 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. /// /// Thrown when failed of invalid argument. - public void UnsetSecondarySelction() + public void UnsetSecondarySelection() { int res = Interop.KVMService.UnsetSecondarySelection(_kvmService); _tzsh.ErrorCodeThrow(res); diff --git a/src/Tizen.NUI/src/public/Clipboard/ClipboardEvent.cs b/src/Tizen.NUI/src/public/Clipboard/ClipboardEvent.cs index 5ff6443..bbf0bb3 100755 --- a/src/Tizen.NUI/src/public/Clipboard/ClipboardEvent.cs +++ b/src/Tizen.NUI/src/public/Clipboard/ClipboardEvent.cs @@ -98,7 +98,7 @@ namespace Tizen.NUI /// /// The following example demonstrates how to use the DataSelected. /// - /// kvmService.SetSecondarySelction(); // precondition + /// kvmService.SetSecondarySelection(); // precondition /// /// Clipboard.Instance.DataSelected += (s, e) => /// { diff --git a/test/NUIClipboardDataSelected/ClipboardDataSelected.cs b/test/NUIClipboardDataSelected/ClipboardDataSelected.cs index 80ff348..5e9d9a9 100644 --- a/test/NUIClipboardDataSelected/ClipboardDataSelected.cs +++ b/test/NUIClipboardDataSelected/ClipboardDataSelected.cs @@ -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. diff --git a/test/NUIWindowKVMSample/NUIWindowKVMSample.cs b/test/NUIWindowKVMSample/NUIWindowKVMSample.cs index 0c266d3..176cd66 100644 --- a/test/NUIWindowKVMSample/NUIWindowKVMSample.cs +++ b/test/NUIWindowKVMSample/NUIWindowKVMSample.cs @@ -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; } -- 2.7.4