diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-10-02 13:03:50 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-10-02 15:32:48 +0200 |
commit | deb849dfd54deafa894692f4e44208c2de9f33aa (patch) | |
tree | cb930f051c41004674bb6592dcd2c8cb4e7cab87 /client/x11/platform.cpp | |
parent | 5781c97a1751e8e889b30dcce4641fb30508e072 (diff) | |
download | spice-deb849dfd54deafa894692f4e44208c2de9f33aa.tar.gz spice-deb849dfd54deafa894692f4e44208c2de9f33aa.tar.xz spice-deb849dfd54deafa894692f4e44208c2de9f33aa.zip |
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.
Diffstat (limited to 'client/x11/platform.cpp')
-rw-r--r-- | client/x11/platform.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp index 66271872..b7216ebb 100644 --- a/client/x11/platform.cpp +++ b/client/x11/platform.cpp @@ -3145,7 +3145,7 @@ LocalCursor* Platform::create_default_cursor() return new XDefaultCursor(); } -bool Platform::set_clipboard_owner(uint32_t *types, uint32_t type_count) +bool Platform::on_clipboard_grab(uint32_t *types, uint32_t type_count) { Lock lock(clipboard_lock); /* FIXME use all types rather then just the first one */ @@ -3166,7 +3166,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) { Lock lock(clipboard_lock); uint32_t format = get_clipboard_format(type); @@ -3187,7 +3187,7 @@ bool Platform::set_clipboard_data(uint32_t type, const uint8_t* data, int32_t si return true; } -bool Platform::request_clipboard_notification(uint32_t type) +bool Platform::on_clipboard_request(uint32_t type) { uint32_t format = get_clipboard_format(type); @@ -3208,7 +3208,7 @@ bool Platform::request_clipboard_notification(uint32_t type) return true; } -void Platform::release_clipboard() +void Platform::on_clipboard_release() { XSetSelectionOwner(x_display, clipboard_prop, None, CurrentTime); } |