[sugar] [PATCH] Add a simple palette for links with an option to copy to the clipboard
Tomeu Vizoso
tomeu
Sun May 25 15:53:34 EDT 2008
Hi Simon,
just pushed by mistake the copy image patch:
http://dev.laptop.org/git?p=web-activity;a=commitdiff;h=f8d0fa60a50d7a90164ee4431ae7b8d28e3b8421
Can you review it before Marco gets angry at me?
Thanks!
Tomeu
On Sun, May 25, 2008 at 1:27 PM, Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
> On Sun, May 25, 2008 at 12:14 PM, Simon Schampijer <simon at schampijer.de> wrote:
>> hey tomeu,
>>
>> thanks for starting to taggle this.
>>
>> What is the general plan - at the moment this copies the link to the
>> clipboard. For example for an image I imagine that this copies the image to
>> the clipboard that I can use it in another activity. I guess we want to
>> provide both of the functionality copy the link location and copying the
>> data.
>
> Yes, the goal is to provide all the options specified here by Eben:
> http://dev.laptop.org/ticket/2903
>
> I'm working now on copy image to the clipboard.
>
>> Are there constants we can use instead of '2' and 'a' ?
>> if event.button != 2:
>> return
>> target = event.target
>> if target.tagName.lower() == 'a':
>
> Not that I know :/
>
>> Don't need those in palette.py
>> import logging
>> import xpcom
>> from xpcom import components
>
> Thanks, will push.
>
> Tomeu
>
More information about the Sugar-devel
mailing list