]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dnd.cpp
don't set minimal column width, it should be possible to set it even to 0 if desired...
[wxWidgets.git] / src / gtk / dnd.cpp
index 75a0c0962e8afec715c52c7837f0f46ae6874309..c56c8060470cd1e435aa2af66a514af6f00e87d6 100644 (file)
@@ -506,7 +506,13 @@ GdkAtom wxDropTarget::GetMatchingPair()
     GList *child = m_dragContext->targets;
     while (child)
     {
     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__
         wxDataFormat format( formatAtom );
 
 #ifdef __WXDEBUG__