SetType( type );
}
+wxDataFormat::wxDataFormat( const wxChar *id )
+{
+ if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE );
+ SetId( id );
+}
+
wxDataFormat::wxDataFormat( const wxString &id )
{
if (!g_textAtom) g_textAtom = gdk_atom_intern( "STRING", FALSE );
return m_id;
}
-void wxDataFormat::SetId( const wxString &id )
+void wxDataFormat::SetId( const wxChar *id )
{
m_type = wxDF_PRIVATE;
m_id = id;
wxPrivateDataObject::wxPrivateDataObject()
{
- m_id = "application/";
+ m_id = _T("application/");
m_id += wxTheApp->GetAppName();
m_format.SetId( m_id );