[PATCH] BUG: 100464 Dropping text/plain on the bookmark sidebar

Daniel Teske teske at squorn.de
Thu Mar 17 01:08:59 GMT 2005


Hi

As I know next to nothing about drag and drop, I would be thankful if a
few people would take a look at this patch.

BUG: http://bugs.kde.org/1000464 mentions two problems:

One of it is: Dropping text/plain on the bookmark sidebar doesn't work.
The reporter wants to drag and drop selected text from the location bar
to the bookmark sidebar.

The boookmark_module uses KBookmarkDrag to decode the dragged data.
And KBookmarkDrag::canDecode() claims that it supports:
text/uri-list, application/x-xbel, text/plain

Strangely KBookmarkDrag::decode() can't actually handle text/plain.

This patch adds that ability, and with it the described bug is mostly
fixed. (The remaining problem is: Dropping on the toplevel item doesn't
work, but that's another bug, I think I know where the problem is.)

daniel teske
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kbookmarkdrop.patch
Type: text/x-patch
Size: 1204 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050317/1beafe70/attachment.bin>


More information about the kfm-devel mailing list