X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..2cfcf22d47b7d9cf3c85edfe498c5f23a18a9a19:/src/gtk1/dnd.cpp diff --git a/src/gtk1/dnd.cpp b/src/gtk1/dnd.cpp index 75a0c0962e..1157eef82d 100644 --- a/src/gtk1/dnd.cpp +++ b/src/gtk1/dnd.cpp @@ -506,7 +506,12 @@ GdkAtom wxDropTarget::GetMatchingPair() GList *child = m_dragContext->targets; while (child) { - GdkAtom formatAtom = (GdkAtom) GPOINTER_TO_INT(child->data); + // in GTK+ 1.x GdkAtom was a gulong, but now it's a pointer + GdkAtom formatAtom = (GdkAtom) +#ifndef __WXGTK20__ + GPOINTER_TO_INT +#endif + (child->data); wxDataFormat format( formatAtom ); #ifdef __WXDEBUG__