X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/917ae499da53826e9b154a786eae1b563317f47f..333e57d578e9e0fb6555452b5a53698ffd85ee69:/include/wx/dnd.h diff --git a/include/wx/dnd.h b/include/wx/dnd.h index 93bc0f1e18..498bbc7afe 100644 --- a/include/wx/dnd.h +++ b/include/wx/dnd.h @@ -12,10 +12,6 @@ #ifndef _WX_DND_H_BASE_ #define _WX_DND_H_BASE_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "dndbase.h" -#endif - #include "wx/defs.h" #if wxUSE_DRAG_AND_DROP @@ -49,10 +45,9 @@ enum wxDragResult wxDragCancel // the operation was cancelled by user (not an error) }; -inline WXDLLEXPORT bool wxIsDragResultOk(wxDragResult res) -{ - return res == wxDragCopy || res == wxDragMove || res == wxDragLink; -} +// return true if res indicates that something was done during a dnd operation, +// i.e. is neither error nor none nor cancel +WXDLLEXPORT bool wxIsDragResultOk(wxDragResult res); // ---------------------------------------------------------------------------- // wxDropSource is the object you need to create (and call DoDragDrop on it) @@ -222,8 +217,10 @@ protected: #include "wx/motif/dnd.h" #elif defined(__WXX11__) #include "wx/x11/dnd.h" -#elif defined(__WXGTK__) +#elif defined(__WXGTK20__) #include "wx/gtk/dnd.h" +#elif defined(__WXGTK__) + #include "wx/gtk1/dnd.h" #elif defined(__WXMAC__) #include "wx/mac/dnd.h" #elif defined(__WXPM__)