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__