]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dataobj.cpp
Add wxRichTextModuleInit
[wxWidgets.git] / src / gtk / dataobj.cpp
index 88ba70ce97f82425409e16e9eeee54f669ccc2e1..ef24cfe8afc6dea778727548f8dcf1a211163f24 100644 (file)
@@ -23,7 +23,7 @@
 #include "wx/mstream.h"
 #include "wx/uri.h"
 
-#include <gdk/gdk.h>
+#include "wx/gtk/private.h"
 
 //-------------------------------------------------------------------------
 // global data
@@ -110,10 +110,8 @@ wxDataFormatId wxDataFormat::GetType() const
 
 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 )