Expose ZeitgeistClipboardStorage.get_item_by_checksum

Bug #1541071 reported by Timothy
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Plugins need a way to retrieve clipboard items. The ZeitgeistClipboardStorage class has get_item_by_checksum but the Controller doesn't expose the method. Currently this can be worked around by calling select_item_by_checksum fallowed by get_current_item but this has the unwanted effect of selecting the clipboard item.

Thank you.

Revision history for this message
Oliver Sauder (sao) wrote :

That's not a big problem to add this - I wonder though what is your use case to use a get_item_by_checksum from a plugin?

Revision history for this message
Timothy (redhatter271-deactivatedaccount) wrote :

There could be many uses, basically anytime a plugin needs to get a specific clipboard item. My current use case is in the 'pined items' plugin I'm making. I needed a way to save pinned items (so save the checksum) then get that clipboard item when it needed to be pasted.

Revision history for this message
Oliver Sauder (sao) wrote :

OK this makes sense. This is a quick thing so will be added to the next version.

Changed in diodon:
status: New → Triaged
importance: Undecided → Wishlist
milestone: none → 1.4.1
Revision history for this message
Oliver Sauder (sao) wrote :

Added and soon available in daily ppa.

Changed in diodon:
status: Triaged → Fix Committed
Oliver Sauder (sao)
Changed in diodon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.