From: Junseok Kim Date: Wed, 1 Nov 2023 05:27:06 +0000 (+0900) Subject: [NUI.WindowSystem] Add SetSecondarySelection and UnsetSecondarySelection to fix typo X-Git-Tag: submit/tizen_8.0/20231106.124429~1^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a1477c0c75c369547427261a0b9d809025fcab2;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [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. --- diff --git a/src/Tizen.NUI.WindowSystem/src/public/KVMService.cs b/src/Tizen.NUI.WindowSystem/src/public/KVMService.cs index 78f8ac4bc..ba94e053d 100644 --- a/src/Tizen.NUI.WindowSystem/src/public/KVMService.cs +++ b/src/Tizen.NUI.WindowSystem/src/public/KVMService.cs @@ -210,9 +210,31 @@ 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 5ff644351..bbf0bb3d3 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 80ff34899..5e9d9a987 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 0c266d39d..176cd6610 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; }