You need to compare the received data format with known format types.
Once you know the type you can pull the data values from the correct
component data object.
Have you checked if the html is actually in the TextDataObject?
>
> Again, on GTK, dragging in a bitmap (again, say dragging an image from
> Firefox) will match the if statement of DF_FILENAME, not BITMAP. On
> Windows, it's recognised as a BITMAP.
This could just be a case of the browser working differently on each
platform. Is the filename set to something like a temporary local file
that is the image being dragged? It's also possible that the browser is
sending both a filename and a bitmap, but since you are checking for the
filename first then you are not seeing that there is also a bitmap.
There are some tools around for each platform that can help you diagnose
what is going on here. Typically they will show you the details about
each data object on the clipboard or in a DnD, including the data format
and the data itself. On Windows ClipSpy is a good one. I can't
remember what the name of one on Linux that I used once, but a little
googling will probably locate it for you.
Cheers for the hints :)