X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..bc119dd5069b28778899b70ceb80bbe701e6c951:/src/x11/clipbrd.cpp diff --git a/src/x11/clipbrd.cpp b/src/x11/clipbrd.cpp index 731d49e668..c5abc23ce8 100644 --- a/src/x11/clipbrd.cpp +++ b/src/x11/clipbrd.cpp @@ -18,10 +18,9 @@ #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/utils.h" + #include "wx/dataobj.h" #endif -#include "wx/dataobj.h" - #include "wx/x11/private.h" //----------------------------------------------------------------------------- @@ -33,10 +32,12 @@ Atom g_clipboardAtom = 0; Atom g_targetsAtom = 0; #endif +#ifdef __WXDEBUG__ // 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"); +#endif // __WXDEBUG__ //----------------------------------------------------------------------------- // reminder @@ -250,7 +251,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);