<div dir="ltr">I think if the gtk clipboard has the functionality, then I'll just document some examples for that and reference to the larger body of work available online. I guess there is less direct relevance for the sugar clipboardservice api right now when it comes to sharing stuff between activities (from the perspective of someone developing an activity). <br>
<br>Thanks so much for the clarification.<br><br><br>Faisal<br><br><div class="gmail_quote">On Sat, Jul 19, 2008 at 3:14 PM, Tomeu Vizoso <span dir="ltr"><<a href="mailto:tomeu@tomeuvizoso.net">tomeu@tomeuvizoso.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well, we can add some sugar API around the gtk clipboard stuff, but<br>
I'm not sure there's a lot of value in there, as the gtk+ API is<br>
already quite high level.<br>
<br>
The problem here is how do we extend the existing X specs to deliver<br>
the experience we aim for. Last we talked about it, Marco was opposed<br>
to use the X selection targets to pass titles and icons around.<br>
<br>
Eben, now is a good moment to start talking about it, can you<br>
summarize what is missing from the clipboard and try to list all that<br>
we want to do but the current spec doesn't allow to?<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Tomeu<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Sat, Jul 19, 2008 at 5:01 PM, Eben Eliason <<a href="mailto:eben.eliason@gmail.com">eben.eliason@gmail.com</a>> wrote:<br>
> I can't tell from your wording if you are implying that we will or will not<br>
> be creating some custom wrappers for the clipboard service. I think we<br>
> absolutely need them to accomplish several critical clipboard issues (among<br>
> them, specifying icons, colors, titles, and previews for clippings). In<br>
> fact, getting this API working effectively is high on my list of priorities<br>
> for 9.1<br>
> - Eben<br>
><br>
> On Sat, Jul 19, 2008 at 4:19 AM, Tomeu Vizoso <<a href="mailto:tomeu@tomeuvizoso.net">tomeu@tomeuvizoso.net</a>> wrote:<br>
>><br>
>> On Fri, Jul 18, 2008 at 10:29 PM, Faisal Anwar <<a href="mailto:fanwar@mediamods.com">fanwar@mediamods.com</a>><br>
>> 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<br>
>> > 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<br>
>> > an<br>
>> > object_id in order to retrieve something from the clipboard. Typically,<br>
>> > a<br>
>> > clipboard has some stack like structure where you can automatically<br>
>> > 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<br>
>> > 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<br>
>> > 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<br>
>> > the<br>
>> > gtk implementation?<br>
>><br>
>> 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>
><br>
><br>
</div></div></blockquote></div><br></div>