From: Julian Smart Date: Tue, 17 Oct 2006 17:16:53 +0000 (+0000) Subject: Support wxDF_UNICODETEXT X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/daad5a23b7a04d149500390ec5b181c32393613d Support wxDF_UNICODETEXT git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/x11/clipbrd.cpp b/src/x11/clipbrd.cpp index 1ae753aec7..80a7a15d25 100644 --- a/src/x11/clipbrd.cpp +++ b/src/x11/clipbrd.cpp @@ -249,7 +249,7 @@ selection_handler( GtkWidget *WXUNUSED(widget), // transform Unicode text into multibyte before putting it on clipboard #if wxUSE_UNICODE - if ( format.GetType() == wxDF_TEXT ) + if ( format.GetType() == wxDF_TEXT || format.GetType() == wxDF_UNICODETEXT) { const wchar_t *wstr = (const wchar_t *)d; size_t len = wxConvCurrent->WC2MB(NULL, wstr, 0); diff --git a/src/x11/dataobj.cpp b/src/x11/dataobj.cpp index 1f2d5aaf09..b0c6bbc7d4 100644 --- a/src/x11/dataobj.cpp +++ b/src/x11/dataobj.cpp @@ -80,7 +80,7 @@ void wxDataFormat::SetType( wxDataFormatId type ) PrepareFormats(); m_type = type; - if (m_type == wxDF_TEXT) + if (m_type == wxDF_TEXT || m_type == wxDF_UNICODETEXT) m_format = g_textAtom; else if (m_type == wxDF_BITMAP)