From deb849dfd54deafa894692f4e44208c2de9f33aa Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 2 Oct 2010 13:03:50 +0200 Subject: Rename platform clipboard handling functions Rename the 4 platform clipboard functions which get called upon receival of an agent clipboard message to on_clipboard_* The old set_clipboard_* names were confusing as they suggest being a class property setter (like set_event_listener) rather then event handler, and set_clipboard_owner was causing a name conflict with the next patch in this series. --- client/windows/platform.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/windows/platform.cpp') diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp index 2a629440..db6d18ab 100644 --- a/client/windows/platform.cpp +++ b/client/windows/platform.cpp @@ -856,7 +856,7 @@ void WinPlatform::exit_modal_loop() modal_loop_active = false; } -bool Platform::set_clipboard_owner(uint32_t *types, uint32_t type_count) +bool Platform::on_clipboard_grab(uint32_t *types, uint32_t type_count) { /* FIXME use all types rather then just the first one */ uint32_t format = get_clipboard_format(types[0]); @@ -880,7 +880,7 @@ void Platform::set_clipboard_listener(ClipboardListener* listener) clipboard_listener = listener ? listener : &default_clipboard_listener; } -bool Platform::set_clipboard_data(uint32_t type, const uint8_t* data, int32_t size) +bool Platform::on_clipboard_notify(uint32_t type, const uint8_t* data, int32_t size) { HGLOBAL clip_data; LPVOID clip_buf; @@ -946,7 +946,7 @@ bool Platform::set_clipboard_data(uint32_t type, const uint8_t* data, int32_t si return ret; } -bool Platform::request_clipboard_notification(uint32_t type) +bool Platform::on_clipboard_request(uint32_t type) { UINT format = get_clipboard_format(type); HANDLE clip_data; @@ -995,7 +995,7 @@ bool Platform::request_clipboard_notification(uint32_t type) return ret; } -void Platform::release_clipboard() +void Platform::on_clipboard_release() { SetEvent(clipboard_event); } -- cgit