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/red_client.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/red_client.cpp') diff --git a/client/red_client.cpp b/client/red_client.cpp index 666de40c..3f01fb1c 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -1087,21 +1087,21 @@ void RedClient::dispatch_agent_message(VDAgentMessage* msg, void* data) } case VD_AGENT_CLIPBOARD: { VDAgentClipboard* clipboard = (VDAgentClipboard*)data; - Platform::set_clipboard_data(clipboard->type, clipboard->data, + Platform::on_clipboard_notify(clipboard->type, clipboard->data, msg->size - sizeof(VDAgentClipboard)); break; } case VD_AGENT_CLIPBOARD_GRAB: - Platform::set_clipboard_owner((uint32_t *)data, + Platform::on_clipboard_grab((uint32_t *)data, msg->size / sizeof(uint32_t)); break; case VD_AGENT_CLIPBOARD_REQUEST: - if (!Platform::request_clipboard_notification(((VDAgentClipboardRequest*)data)->type)) { + if (!Platform::on_clipboard_request(((VDAgentClipboardRequest*)data)->type)) { on_clipboard_notify(VD_AGENT_CLIPBOARD_NONE, NULL, 0); } break; case VD_AGENT_CLIPBOARD_RELEASE: - Platform::release_clipboard(); + Platform::on_clipboard_release(); break; default: DBG(0, "Unsupported message type %u size %u", msg->type, msg->size); -- cgit