X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..98cb8dcb0cf3b0e660f1f67e1c02451ab10257de:/src/gtk1/dnd.cpp diff --git a/src/gtk1/dnd.cpp b/src/gtk1/dnd.cpp index 75a0c0962e..c56c806047 100644 --- a/src/gtk1/dnd.cpp +++ b/src/gtk1/dnd.cpp @@ -506,7 +506,13 @@ 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 = +#ifdef __WXGTK20__ + (GdkAtom)(child->data); +#else + GPOINTER_TO_INT(child->data); +#endif wxDataFormat format( formatAtom ); #ifdef __WXDEBUG__