#2570 Accept correctly image drops from Record.
This commit is contained in:
parent
0f17ae5d04
commit
ec6fc9bfa9
1
NEWS
1
NEWS
@ -1,3 +1,4 @@
|
|||||||
|
* #2570 Accept correctly image drops from Record.
|
||||||
* Add Greek translation. (simosx)
|
* Add Greek translation. (simosx)
|
||||||
* #2564 Use the activity service name as the base name for translation files.
|
* #2564 Use the activity service name as the base name for translation files.
|
||||||
(tomeu)
|
(tomeu)
|
||||||
|
@ -86,7 +86,18 @@ class ClipboardPanelWindow(FrameWindow):
|
|||||||
logging.debug('adding type ' + selection.type + '.')
|
logging.debug('adding type ' + selection.type + '.')
|
||||||
|
|
||||||
cb_service = clipboardservice.get_instance()
|
cb_service = clipboardservice.get_instance()
|
||||||
cb_service.add_object_format(key,
|
if selection.type == 'text/uri-list':
|
||||||
selection.type,
|
uris = selection.data.split('\n')
|
||||||
selection.data,
|
if len(uris) > 1:
|
||||||
on_disk = False)
|
raise NotImplementedError('Multiple uris in text/uri-list still not supported.')
|
||||||
|
|
||||||
|
cb_service.add_object_format(key,
|
||||||
|
selection.type,
|
||||||
|
uris[0],
|
||||||
|
on_disk=True)
|
||||||
|
else:
|
||||||
|
cb_service.add_object_format(key,
|
||||||
|
selection.type,
|
||||||
|
selection.data,
|
||||||
|
on_disk=False)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user