Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-06-17 12:24:46 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-06-17 12:24:46 (GMT)
commit130f59efdcb288f6d4ab86ac55f7d4aefe7feab6 (patch)
tree524e67a069a94f9c0ce4c0885fc57619ee464a34 /shell
parentf0e18ba785a3d57af54bb6f6a7e9993dee6e72fe (diff)
Clipboard fixes.
Diffstat (limited to 'shell')
-rw-r--r--shell/view/frame/clipboardbox.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/view/frame/clipboardbox.py b/shell/view/frame/clipboardbox.py
index fc81bce..8eab85f 100644
--- a/shell/view/frame/clipboardbox.py
+++ b/shell/view/frame/clipboardbox.py
@@ -87,15 +87,15 @@ class ClipboardBox(hippo.CanvasBox):
if len(uris) > 1:
raise NotImplementedError('Multiple uris in text/uri-list still not supported.')
uri = urlparse.urlparse(uris[0])
- path, file_name = os.path.split(uri[2])
+ path, file_name = os.path.split(uri.path)
# Copy the file, as it will be deleted when the dnd operation finishes.
new_file_path = os.path.join(path, 'cb' + file_name)
- shutil.copyfile(uri[2], new_file_path)
+ shutil.copyfile(uri.path, new_file_path)
cb_service.add_object_format(object_id,
selection.type,
- uri[0] + "://" + new_file_path,
+ "file://" + new_file_path,
on_disk=True)
else:
cb_service.add_object_format(object_id,