[sugar] Question about clipboard service

Faisal Anwar fanwar
Fri Jul 18 16:29:51 EDT 2008


Hi,

I'm playing around with the clipboard package on sugar and had a quick
question. So, the clipboardservice.py file shows some basic api for getting
and setting objects on the clipboard through the dbus. However, the
add_object and get_object methods (and their variants) rely on knowing an
object_id in order to retrieve something from the clipboard. Typically, a
clipboard has some stack like structure where you can automatically retrieve
the last thing copied to the clipboard without necessarily knowing its
internal id. This would seem especially important fo passing things to other
activities, which can't reasonably figure out the object_id created when
something is saved to the clipboard by another activity. Does anyone know
how to just retrieve the last item saved to the clipboard and also get a
list of the last N items saved to the clipboard?

Also, the gtk.Clipboard framework allows access to several different
clipboards that have slightly different purposes. Is there similar
functionality available through sugar/dbus or would one go directly to the
gtk implementation?

Thanks!

Faisal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20080718/cfb65b0c/attachment.htm 



More information about the Sugar-devel mailing list