+void wxDataFormat::SetId( const wxChar *id )
+{
+ PrepareFormats();
+ m_type = wxDF_PRIVATE;
+ wxString tmp( id );
+ m_format = XInternAtom( wxGlobalDisplay(),
+ tmp.mbc_str(), FALSE );
+}
+
+void wxDataFormat::PrepareFormats()
+{
+ if (!g_textAtom)
+ g_textAtom = XInternAtom( wxGlobalDisplay(), "STRING", FALSE );
+ if (!g_bitmapAtom)
+ g_bitmapAtom = XInternAtom( wxGlobalDisplay(), "PIXMAP", FALSE );
+ if (!g_fileAtom)
+ g_fileAtom = XInternAtom( wxGlobalDisplay(), "file:ALL", FALSE );
+}