X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e1d71048207f3d008dac28d0c290ae0a6b59997..44ba8f0ea92f65d9893ce0780971745a5d8e80ea:/src/gtk/dataobj.cpp diff --git a/src/gtk/dataobj.cpp b/src/gtk/dataobj.cpp index 712616a074..e0d6d37609 100644 --- a/src/gtk/dataobj.cpp +++ b/src/gtk/dataobj.cpp @@ -72,8 +72,12 @@ wxDataFormat::wxDataFormat( NativeFormat format ) void wxDataFormat::SetType( wxDataFormatId type ) { PrepareFormats(); - m_type = type; + + if (type == wxDF_UNICODETEXT) + type = wxDF_TEXT; + m_type = type; + if (m_type == wxDF_TEXT) m_format = g_textAtom; else @@ -135,7 +139,7 @@ void wxDataFormat::PrepareFormats() // here (with whom?) if (!g_textAtom) #if wxUSE_UNICODE - g_textAtom = gdk_atom_intern( "text/utf8", FALSE ); + g_textAtom = gdk_atom_intern( "UTF8_STRING", FALSE ); #else g_textAtom = gdk_atom_intern( "STRING" /* "text/plain" */, FALSE ); #endif