X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2245b2b2c3339ecf023e5880caa803610a5d1907..414dfb5804fc568b26fec3f8a8ecc2f25addedfd:/src/gtk/dnd.cpp diff --git a/src/gtk/dnd.cpp b/src/gtk/dnd.cpp index ca8a96f4b6..bacea138e7 100644 --- a/src/gtk/dnd.cpp +++ b/src/gtk/dnd.cpp @@ -7,12 +7,17 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dnd.h" #endif -#include "wx/dnd.h" +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" +#include "wx/dnd.h" +#include "wx/log.h" + + #if wxUSE_DRAG_AND_DROP #include "wx/window.h" @@ -110,7 +115,7 @@ static const char * page_xpm[] = { // ============================================================================ // ---------------------------------------------------------------------------- -// convert between GTK+ and wxWindows DND constants +// convert between GTK+ and wxWidgets DND constants // ---------------------------------------------------------------------------- static wxDragResult ConvertFromGTK(long action) @@ -301,7 +306,9 @@ static gboolean target_drag_drop( GtkWidget *widget, #endif GdkAtom format = drop_target->GetMatchingPair(); - wxASSERT( format ); + + // this does happen somehow, see bug 555111 + wxCHECK_MSG( format, FALSE, _T("no matching GdkAtom for format?") ) /* GdkDragAction action = GDK_ACTION_MOVE;