- return m_id;
-}
-
-void wxDataFormat::SetId( const wxChar *id )
-{
- m_type = wxDF_PRIVATE;
- m_id = id;
- m_hasAtom = FALSE;
-}
-
-Atom wxDataFormat::GetAtom()
-{
- if (!m_hasAtom)
- {
- m_hasAtom = TRUE;
-
- if (m_type == wxDF_TEXT)
- {
- m_atom = g_textAtom;
- }
- else
-/*
- if (m_type == wxDF_BITMAP)
- {
- m_atom = GDK_TARGET_BITMAP;
- }
- else
-*/
- if (m_type == wxDF_PRIVATE)
- {
- m_atom = XInternAtom( (Display*) wxGetDisplay(), wxMBSTRINGCAST m_id.mbc_str(), FALSE );
- }
- else
- if (m_type == wxDF_FILENAME)
- {
- m_atom = XInternAtom( (Display*) wxGetDisplay(), "file:ALL", FALSE );
- }
- else
- {
- m_hasAtom = FALSE;
- m_atom = (Atom) 0;
- }
- }
-
- return m_atom;
-}
-
-//-------------------------------------------------------------------------
-// wxDataObject
-//-------------------------------------------------------------------------
-
-IMPLEMENT_ABSTRACT_CLASS( wxDataObject, wxObject )
-
-wxDataObject::wxDataObject()
-{
-}
-
-wxDataObject::~wxDataObject()
-{
+ char *t = XGetAtomName ((Display*) wxGetDisplay(), m_format);
+ wxString ret( t ); // this will convert from ascii to Unicode
+ if (t)
+ XFree( t );
+ return ret;