On Wed, Jun 17, 2009 at 6:00 PM, Ville M. Vainio<vivai...@gmail.com> wrote:

> This is still fundamentally a "wrong thing to do", so I emit a g.trace
> warning as well.

Suggested "correct" approach:

In

Code-->Core classes-->@thin leoCommands.py-->class commands-->Command
handlers...-->Outline menu...--> Top Level... (Commands)-->Cut & Paste
Outlines-->copyOutline

Do not call replaceClipboardWith - rather, call

clipboardSetBinary("application/leo-outline", s)

On tk, that can call replaceClipboardWith directly.


In Command handlers...-->Outline menu...--> Top Level...
(Commands)-->Cut & Paste Outlines-->pasteOutline

It shouldn't call getTextFromClipboard, but rather a new method
getBinaryFromClipboard("application/leo-outline")

I think this will also eliminate accidental pasting of outline xml to nodes.

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to