From b4fecef2dd4931d27053910cefeb33fa0468bc16 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 17 Jun 2007 18:49:37 +0000 Subject: Remove some dnd flavors that confuse receivers of drops. --- (limited to 'dnd.py') diff --git a/dnd.py b/dnd.py index 60cbee6..996a961 100644 --- a/dnd.py +++ b/dnd.py @@ -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 -- cgit v0.9.1