X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6086ea66340f82b3a4988c820cb351d128fe0d1..41ca191f4b76957735a885b620d54c5f51524522:/src/gtk/dataobj.cpp diff --git a/src/gtk/dataobj.cpp b/src/gtk/dataobj.cpp index a3ed60aa98..161a6b5e3e 100644 --- a/src/gtk/dataobj.cpp +++ b/src/gtk/dataobj.cpp @@ -32,7 +32,7 @@ IMPLEMENT_CLASS(wxDataFormat, wxObject) wxDataFormat::wxDataFormat() { - if (!g_textAtom) g_textAtom = gdk_atom_intern( "TEXT", FALSE ); + if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE ); m_type = wxDF_INVALID; m_hasAtom = FALSE; m_atom = (GdkAtom) 0; @@ -40,19 +40,19 @@ wxDataFormat::wxDataFormat() wxDataFormat::wxDataFormat( wxDataType type ) { - if (!g_textAtom) g_textAtom = gdk_atom_intern( "TEXT", FALSE ); + if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE ); SetType( type ); } wxDataFormat::wxDataFormat( const wxString &id ) { - if (!g_textAtom) g_textAtom = gdk_atom_intern( "TEXT", FALSE ); + if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE ); SetId( id ); } wxDataFormat::wxDataFormat( wxDataFormat &format ) { - if (!g_textAtom) g_textAtom = gdk_atom_intern( "TEXT", FALSE ); + if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE ); m_type = format.GetType(); m_id = format.GetId(); m_hasAtom = TRUE; @@ -61,7 +61,7 @@ wxDataFormat::wxDataFormat( wxDataFormat &format ) wxDataFormat::wxDataFormat( const GdkAtom atom ) { - if (!g_textAtom) g_textAtom = gdk_atom_intern( "TEXT", FALSE ); + if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE ); m_hasAtom = TRUE; m_atom = atom; @@ -78,7 +78,7 @@ wxDataFormat::wxDataFormat( const GdkAtom atom ) m_type = wxDF_PRIVATE; m_id = gdk_atom_name( m_atom ); - if (m_id == "file:ALL") + if (m_id == _T("file:ALL")) { m_type = wxDF_FILENAME; } @@ -91,21 +91,21 @@ void wxDataFormat::SetType( wxDataType type ) if (m_type == wxDF_TEXT) { - m_id = "TEXT"; + m_id = _T("STRING"); } else if (m_type == wxDF_BITMAP) { - m_id = "BITMAP"; + m_id = _T("BITMAP"); } else if (m_type == wxDF_FILENAME) { - m_id = "file:ALL"; + m_id = _T("file:ALL"); } else { - wxFAIL_MSG( "invalid dataformat" ); + wxFAIL_MSG( _T("invalid dataformat") ); } m_hasAtom = FALSE; @@ -146,7 +146,7 @@ GdkAtom wxDataFormat::GetAtom() else if (m_type == wxDF_PRIVATE) { - m_atom = gdk_atom_intern( WXSTRINGCAST( m_id ), FALSE ); + m_atom = gdk_atom_intern( MBSTRINGCAST m_id.mbc_str(), FALSE ); } else if (m_type == wxDF_FILENAME) @@ -352,7 +352,7 @@ wxFileDataObject::wxFileDataObject() void wxFileDataObject::AddFile( const wxString &file ) { m_files += file; - m_files += (char)0; + m_files += (wxChar)0; } wxString wxFileDataObject::GetFiles() const