Expose ZeitgeistClipboardStorage.get_item_by_checksum

Bug #1541071 reported by Timothy on 2016-02-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Diodon
Wishlist
Unassigned

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.

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?

Timothy (c-) 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.

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
Oliver Sauder (sao) wrote :

Added and soon available in daily ppa.

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

Other bug subscribers