Re: GTK and KDE compatibility
- From: Chris Vine <chris cvine freeserve co uk>
- To: Colossus <colossus 3000 it>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GTK and KDE compatibility
- Date: Thu, 2 Mar 2006 11:29:09 +0000
On Thursday 02 March 2006 11:01, Colossus wrote:
Chris Vine wrote:
You probably haven't set the drag target correctly.
Chris, thank you so much for replying me. Could you give me some
examples, source code or a gtk program you know whose drag and drop
works from KDE ?
You can just make a GtkWindow object, put a GtkEntry object in it, and then
drag to the entry object.
I suggest you look at the gtk_entry.c to see how it sets the target up, but as
konqueror drags URLs as text/plain (if that is what you are interested in)
you could just set the target to "STRING" (for "old" DND) and
"text/plain" (for mime-based DND, which is what kde will use).
In fact any byte-stream can be dragged as text/plain but you will need to know
how to interpret it at the receiving end if it is not in fact plain text.
The main point is that the source mime type and the target mime type must
match for the drag to successfully register itself.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]