]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dataobj.cpp
missing dllexport declaration added
[wxWidgets.git] / src / gtk / dataobj.cpp
index 5a22da60b16a0ab6522e3f4189a312d9fb8d8f4f..b4341cc0e4d86921906cf3f35301b48dd4b91085 100644 (file)
 #include "wx/wxprec.h"
 
 #include "wx/dataobj.h"
 #include "wx/wxprec.h"
 
 #include "wx/dataobj.h"
+
+#if wxUSE_DATAOBJ
+
 #include "wx/app.h"
 #include "wx/debug.h"
 #include "wx/mstream.h"
 #include "wx/image.h"
 #include "wx/log.h"
 #include "wx/app.h"
 #include "wx/debug.h"
 #include "wx/mstream.h"
 #include "wx/image.h"
 #include "wx/log.h"
+#include "wx/uri.h"
 
 #include <gdk/gdk.h>
 
 
 #include <gdk/gdk.h>
 
@@ -277,7 +281,7 @@ bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
                     lenPrefix += 2;
                 }
 
                     lenPrefix += 2;
                 }
 
-                AddFile(wxURL::ConvertFromURI(filename.c_str() + lenPrefix));
+                AddFile(wxURI::Unescape(filename.c_str() + lenPrefix));
                 filename.Empty();
             }
             else
                 filename.Empty();
             }
             else
@@ -395,4 +399,4 @@ void wxBitmapDataObject::DoConvertToPng()
     image.SaveFile(mstream, wxBITMAP_TYPE_PNG);
 }
 
     image.SaveFile(mstream, wxBITMAP_TYPE_PNG);
 }
 
-
+#endif // wxUSE_DATAOBJ