///////////////////////////////////////////////////////////////////////////////
-// Name: dataobj.cpp
+// Name: src/motif/dataobj.cpp
// Purpose: wxDataObject class
// Author: Julian Smart
// Id: $Id$
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "dataobj.h"
-#endif
-
-#include "wx/defs.h"
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
#if wxUSE_CLIPBOARD
#include "wx/dataobj.h"
-#include "wx/app.h"
-#include "wx/utils.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+ #include "wx/utils.h"
+#endif
#ifdef __VMS__
#pragma message disable nosimpint
{
char *t = XGetAtomName ((Display*) wxGetDisplay(), m_format);
wxString ret( t ); // this will convert from ascii to Unicode
- if (t)
+ if (t)
XFree( t );
return ret;
}
m_type = wxDF_PRIVATE;
wxString tmp( id );
m_format = XInternAtom( wxGlobalDisplay(),
- tmp.mbc_str(), FALSE );
+ tmp.mbc_str(), False );
}
void wxDataFormat::PrepareFormats()
{
if (!g_textAtom)
- g_textAtom = XInternAtom( wxGlobalDisplay(), "STRING", FALSE );
+ g_textAtom = XInternAtom( wxGlobalDisplay(), "STRING", False );
if (!g_bitmapAtom)
- g_bitmapAtom = XInternAtom( wxGlobalDisplay(), "PIXMAP", FALSE );
+ g_bitmapAtom = XInternAtom( wxGlobalDisplay(), "PIXMAP", False );
if (!g_fileAtom)
- g_fileAtom = XInternAtom( wxGlobalDisplay(), "file:ALL", FALSE );
+ g_fileAtom = XInternAtom( wxGlobalDisplay(), "file:ALL", False );
}
// ----------------------------------------------------------------------------