diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-06-17 18:49:37 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-06-17 18:49:37 (GMT) |
commit | b4fecef2dd4931d27053910cefeb33fa0468bc16 (patch) | |
tree | 0bd37e908ec28febcabdf91fd03039e4630a54c4 | |
parent | 74a38c2ea9c1e71fb8c4a229424de554992417cc (diff) |
Remove some dnd flavors that confuse receivers of drops.
-rw-r--r-- | dnd.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -83,10 +83,13 @@ class DragDropHooks: document_node = DocumentNode(target_node, self._browser.web_navigation) if document_node.is_image(): + # Take out this flavors as they confuse the receivers: trans.removeDataFlavor('text/x-moz-url') - trans.addDataFlavor('text/uri-list') - + trans.removeDataFlavor('text/html') + trans.removeDataFlavor('text/unicode') + data_provider = UriListDataProvider(document_node) + trans.addDataFlavor('text/uri-list') trans.setTransferData('text/uri-list', data_provider, 0) return True |