Commit c9b16805 authored by Jack Jansen's avatar Jack Jansen

Use the Carbon scrap manager interface if the old interface isn't available.

parent 2eef3eb9
......@@ -291,8 +291,13 @@ class BrowserWidget(W.List):
text = string.join(selitems, '\r')
if text:
from Carbon import Scrap
if hasattr(Scrap, 'PutScrap'):
Scrap.ZeroScrap()
Scrap.PutScrap('TEXT', text)
else:
Scrap.ClearCurrentScrap()
sc = Scrap.GetCurrentScrap()
sc.PutScrapFlavor('TEXT', 0, text)
class Browser:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment