No API to unregister a GdkContentSerializer
The function gdk_content_register_serializer()
has no counterpart gdk_content_unregister_serializer()
. This means serializers for a given type stay registered forever, and there is no way to unregister them.
The ability to unregister serializers would be useful in e.g. Inkscape. The possible formats that Inkscape can serialize to depends on a dynamic list of export extensions, which can be loaded and unloaded at any time by the user. So for example, if the user decides to unload the extension responsible for exporting to image/webp
, then that format should no longer be advertised on the clipboard.