X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fclipboard%2Fubuntu-x11%2Fclipboard-impl-x.cpp;h=070974fe370e6df67dd0924995222c07d7df7f16;hb=9900645a13deda1aa7cdbe35ceab1c84d97cb60d;hp=807f9db5df8b8b25cae70f87f8bcbf3fa05fd32f;hpb=245d02017a1bf8ba4c18db31427c6b3a5a31c696;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/clipboard/ubuntu-x11/clipboard-impl-x.cpp b/dali/internal/clipboard/ubuntu-x11/clipboard-impl-x.cpp index 807f9db..070974f 100644 --- a/dali/internal/clipboard/ubuntu-x11/clipboard-impl-x.cpp +++ b/dali/internal/clipboard/ubuntu-x11/clipboard-impl-x.cpp @@ -222,26 +222,26 @@ bool Clipboard::IsVisible() const return false; } -void Clipboard::ExcuteSend(void* event) +char* Clipboard::ExcuteBuffered(bool type, void* event) { -} - -void Clipboard::ExcuteReceive(void* event, char*& data, int& length) -{ - // Receive - Ecore_X_Event_Selection_Notify* selectionNotifyEvent = static_cast(event); - - Ecore_X_Selection_Data* selectionData = static_cast(selectionNotifyEvent->data); - if(selectionData->data) + if(!type) { - if(selectionNotifyEvent->selection == ECORE_X_SELECTION_SECONDARY) + // Receive + Ecore_X_Event_Selection_Notify* selectionNotifyEvent = static_cast(event); + + Ecore_X_Selection_Data* selectionData = static_cast(selectionNotifyEvent->data); + if(selectionData->data) { - // Claim the ownership of the SECONDARY selection. - ecore_x_selection_secondary_set(mImpl->mApplicationWindow, "", 1); - data = reinterpret_cast(selectionData->data); - length = selectionData->length; + if(selectionNotifyEvent->selection == ECORE_X_SELECTION_SECONDARY) + { + // Claim the ownership of the SECONDARY selection. + ecore_x_selection_secondary_set(mImpl->mApplicationWindow, "", 1); + + return (reinterpret_cast(selectionData->data)); + } } } + return NULL; } } // namespace Adaptor