<div dir="ltr">I can't tell from your wording if you are implying that we will or will not be creating some custom wrappers for the clipboard service. I think we absolutely need them to accomplish several critical clipboard issues (among them, specifying icons, colors, titles, and previews for clippings). In fact, getting this API working effectively is high on my list of priorities for 9.1<div>
<br></div><div>- Eben</div><div><br><br><div class="gmail_quote">On Sat, Jul 19, 2008 at 4:19 AM, Tomeu Vizoso <<a href="mailto:tomeu@tomeuvizoso.net">tomeu@tomeuvizoso.net</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="Wj3C7c">On Fri, Jul 18, 2008 at 10:29 PM, Faisal Anwar <<a href="mailto:fanwar@mediamods.com">fanwar@mediamods.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm playing around with the clipboard package on sugar and had a quick<br>
> question. So, the clipboardservice.py file shows some basic api for getting<br>
> and setting objects on the clipboard through the dbus. However, the<br>
> add_object and get_object methods (and their variants) rely on knowing an<br>
> object_id in order to retrieve something from the clipboard. Typically, a<br>
> clipboard has some stack like structure where you can automatically retrieve<br>
> the last thing copied to the clipboard without necessarily knowing its<br>
> internal id. This would seem especially important fo passing things to other<br>
> activities, which can't reasonably figure out the object_id created when<br>
> something is saved to the clipboard by another activity. Does anyone know<br>
> how to just retrieve the last item saved to the clipboard and also get a<br>
> list of the last N items saved to the clipboard?<br>
><br>
> Also, the gtk.Clipboard framework allows access to several different<br>
> clipboards that have slightly different purposes. Is there similar<br>
> functionality available through sugar/dbus or would one go directly to the<br>
> gtk implementation?<br>
<br>
</div></div>Hi Faisal,<br>
<br>
we haven't reached any agreement yet about exposing a different<br>
clipboard API than the one in gtk+ (that wraps around the different<br>
clipboard-related specs used in X).<br>
<br>
In other words, nobody other than the shell should directly use the<br>
clipboard service and this will probably disappear in the future.<br>
Activity authors should the use the clipboard functionality as exposed<br>
by their toolkits (gtk+) or implement themselves those specs (as etoys<br>
has done). Can you add this note somewhere in the almanac?<br>
<br>
Thanks,<br>
<br>
Tomeu<br>
_______________________________________________<br>
Sugar mailing list<br>
<a href="mailto:Sugar@lists.laptop.org">Sugar@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/sugar" target="_blank">http://lists.laptop.org/listinfo/sugar</a><br>
</blockquote></div><br></div></div>