#include "wx/x11/private.h"
//-----------------------------------------------------------------------------
#include "wx/x11/private.h"
//-----------------------------------------------------------------------------
// the trace mask we use with wxLogTrace() - call
// wxLog::AddTraceMask(TRACE_CLIPBOARD) to enable the trace messages from here
// (there will be a *lot* of them!)
static const wxChar *TRACE_CLIPBOARD = _T("clipboard");
// the trace mask we use with wxLogTrace() - call
// wxLog::AddTraceMask(TRACE_CLIPBOARD) to enable the trace messages from here
// (there will be a *lot* of them!)
static const wxChar *TRACE_CLIPBOARD = _T("clipboard");
//-----------------------------------------------------------------------------
// reminder
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// reminder
//-----------------------------------------------------------------------------
wxLogTrace( TRACE_CLIPBOARD,
_T("got unsupported clipboard target") );
wxLogTrace( TRACE_CLIPBOARD,
_T("got unsupported clipboard target") );
/* make sure we got the data in the correct format */
if (!data_object->IsSupportedFormat( format ) )
{
/* make sure we got the data in the correct format */
if (!data_object->IsSupportedFormat( format ) )
{
if so, copy data to target object */
if (selection_data->type != GDK_SELECTION_TYPE_STRING)
{
if so, copy data to target object */
if (selection_data->type != GDK_SELECTION_TYPE_STRING)
{
return;
}
data_object->SetData( format, (size_t) selection_data->length, (const char*) selection_data->data );
wxTheClipboard->m_formatSupported = true;
return;
}
data_object->SetData( format, (size_t) selection_data->length, (const char*) selection_data->data );
wxTheClipboard->m_formatSupported = true;
{
const wchar_t *wstr = (const wchar_t *)d;
size_t len = wxConvCurrent->WC2MB(NULL, wstr, 0);
{
const wchar_t *wstr = (const wchar_t *)d;
size_t len = wxConvCurrent->WC2MB(NULL, wstr, 0);
#if 0
/* Tell the world we offer clipboard data */
res = (gtk_selection_owner_set( m_clipboardWidget,
#if 0
/* Tell the world we offer clipboard data */
res = (gtk_selection_owner_set( m_clipboardWidget,
clipboard owner which is an asynchronous process.
therefore we set m_waiting = true here and wait
until the callback "targets_selection_received"
clipboard owner which is an asynchronous process.
therefore we set m_waiting = true here and wait
until the callback "targets_selection_received"