[sugar] [PATCH] Add a simple palette for links with an option to copy to the clipboard
simon at schampijer.de
Mon May 26 03:01:06 EDT 2008
with this patch I understood now what 'a' and 'img' means. At the moment when it is
an image you can only save it not copy the link location. You should be able to do
both on an image I think.
From eben's list http://dev.laptop.org/ticket/2903 this would be:
* Copy link
* Download linked file
Tomeu Vizoso wrote:
> Hi Simon,
> just pushed by mistake the copy image patch:
> Can you review it before Marco gets angry at me?
> 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
>> Yes, the goal is to provide all the options specified here by Eben:
>> 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:
>>> 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.
More information about the Sugar