Add nautilus_file_info_remove_emblem() to the extension API
I just created an emblem picker for Nautilus Annotations. It works great, and I am able to show the emblems added in real time via nautilus_file_info_add_emblem()
. However if a user removes an emblem from a file there is not a nautilus_file_info_remove_emblem()
function, so the emblem keeps appearing until a user presses Ctrl
+R
. I had hoped that nautilus_file_info_invalidate_extension_info()
would be enough, but that is not the case (apparently nautilus_file_info_invalidate_extension_info()
does not affect the emblems displayed).
Would it be possible to add a nautilus_file_info_remove_emblem()
to the extension API? Or, alternatively, would it be possible to tell nautilus_file_info_invalidate_extension_info()
to refresh the emblems displayed?
--madmurphy
EDIT
After reading what I wrote I realize that I might not have been completely clear. The nautilus_file_info_invalidate_extension_info()
function does affect the emblem displayed if these are added via nautilus_file_info_add_emblem()
, however it does not affect the emblem displayed if these are the result of the "metadata::emblems"
attribute. My extension changes the "metadata::emblems"
attribute.