diff --git a/include/wx/dataobj.h b/include/wx/dataobj.h index d407dd5149..2caee94243 100644 --- a/include/wx/dataobj.h +++ b/include/wx/dataobj.h @@ -322,7 +322,7 @@ private: // ---------------------------------------------------------------------------- #if wxUSE_UNICODE - #if defined(__WXGTK20__) + #if defined(__WXGTK20__) || defined(__WXX11__) #define wxNEEDS_UTF8_FOR_TEXT_DATAOBJ #elif defined(__WXMAC__) #define wxNEEDS_UTF16_FOR_TEXT_DATAOBJ diff --git a/src/x11/dataobj.cpp b/src/x11/dataobj.cpp index 06f650c652..ae09c0fde5 100644 --- a/src/x11/dataobj.cpp +++ b/src/x11/dataobj.cpp @@ -374,4 +374,14 @@ void wxBitmapDataObject::DoConvertToPng() #endif } +// ---------------------------------------------------------------------------- +// wxTextDataObject +// ---------------------------------------------------------------------------- + +void +wxTextDataObject::GetAllFormats(wxDataFormat *formats, + wxDataObjectBase::Direction WXUNUSED(dir)) const +{ + *formats++ = GetPreferredFormat(); +} #endif // wxUSE_DATAOBJ