Re: GtkTextView drag and drop problems
- From: Tor Lillqvist <tml iki fi>
- To: Miroslav Rajcic <rajcic sokrates hr>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkTextView drag and drop problems
- Date: Tue, 7 Apr 2009 16:09:31 +0300
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]