#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/app.h"
+ #include "wx/image.h"
#endif
#include "wx/mstream.h"
-#include "wx/image.h"
#include "wx/uri.h"
-#include <gdk/gdk.h>
+#include "wx/gtk/private.h"
//-------------------------------------------------------------------------
// global data
wxString wxDataFormat::GetId() const
{
- gchar* atom_name = gdk_atom_name( m_format );
- wxString ret = wxString::FromAscii( atom_name );
- g_free(atom_name);
- return ret;
+ wxGtkString atom_name(gdk_atom_name(m_format));
+ return wxString::FromAscii(atom_name);
}
void wxDataFormat::SetId( NativeFormat format )
filenames += wxT("\r\n");
}
- memcpy( buf, filenames.mbc_str(), filenames.Len() + 1 );
+ memcpy( buf, filenames.mbc_str(), filenames.length() + 1 );
return true;
}
for (size_t i = 0; i < m_filenames.GetCount(); i++)
{
// This is junk in UTF-8
- res += m_filenames[i].Len();
+ res += m_filenames[i].length();
res += 5 + 2; // "file:" (5) + "\r\n" (2)
}