X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f542367b72dd900a914c163df7f23ca5e79a60c..98cb8dcb0cf3b0e660f1f67e1c02451ab10257de:/src/gtk/dnd.cpp diff --git a/src/gtk/dnd.cpp b/src/gtk/dnd.cpp index 1157eef82d..c56c806047 100644 --- a/src/gtk/dnd.cpp +++ b/src/gtk/dnd.cpp @@ -507,11 +507,12 @@ GdkAtom wxDropTarget::GetMatchingPair() while (child) { // in GTK+ 1.x GdkAtom was a gulong, but now it's a pointer - GdkAtom formatAtom = (GdkAtom) -#ifndef __WXGTK20__ - GPOINTER_TO_INT + GdkAtom formatAtom = +#ifdef __WXGTK20__ + (GdkAtom)(child->data); +#else + GPOINTER_TO_INT(child->data); #endif - (child->data); wxDataFormat format( formatAtom ); #ifdef __WXDEBUG__