if(clipboard)
{
Clipboard& clipBoardImpl(GetImplementation(clipboard));
- clipBoardImpl.ExcuteBuffered(true, event);
+ clipBoardImpl.ExcuteSend(event);
}
}
// We have got the selected content, inform the clipboard event listener (if we have one).
Dali::Clipboard clipboard = Clipboard::Get();
char* selectionData = NULL;
+ int bufferLength = 0;
if(clipboard)
{
Clipboard& clipBoardImpl(GetImplementation(clipboard));
- selectionData = clipBoardImpl.ExcuteBuffered(false, event);
+ clipBoardImpl.ExcuteReceive(event, selectionData, bufferLength);
}
if(!mClipboardEventNotifier)
mClipboardEventNotifier = ClipboardEventNotifier::Get();
}
- if(selectionData && mClipboardEventNotifier)
+ if(selectionData && mClipboardEventNotifier && bufferLength > 0)
{
ClipboardEventNotifier& clipboardEventNotifier(ClipboardEventNotifier::GetImplementation(mClipboardEventNotifier));
- std::string content(selectionData, strlen(selectionData));
+ std::string content(selectionData, bufferLength - 1);
clipboardEventNotifier.SetContent(content);
clipboardEventNotifier.EmitContentSelectedSignal();
- DALI_LOG_INFO(gSelectionEventLogFilter, Debug::General, "EcoreEventSelectionNotify: Content(%d): %s\n", strlen(selectionData), selectionData);
+ DALI_LOG_INFO(gSelectionEventLogFilter, Debug::General, "EcoreEventSelectionNotify: Content(%s) strlen(%d) buffer(%d)\n", selectionData, strlen(selectionData), bufferLength);
}
}