Re: GtkTextView drag and drop problems



When dragging the Firefox contents over "Clipboard Spy" tool, I notice that
data formats include "CF_TEXT" and "text/html".

OK, so this is on Windows, presumably, as you talk about CF_TEXT?  You
should have said so already in the beginning of your message.

Cross-application drag and drop is not implemented in GTK+ on Windows.
The only exception is dragging files (i.e. their names) from Explorer
to a GTK+ application. That has been implemented because it uses a
totally different API than drag-and-drop in general.

Implementing drag-and-drop in general requires using OLE APIs. Not
fun, from C code, that must be compilable with MinGW.

(That said, it isn't impossibly hard, it's just that nobody has
bothered. There is some initial code, just a start really, known not
to work, ifdeffed out in gdk/win32/gdkdnd-win32.c. Look for #ifdef
OLE2_DND. Feel free to work on it.)

--tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]