Skip to content

clipboard-manager: Make sure we have a mimetype

meta_selection_source_memory_new would previously check that both the mimetype and content are not NULL but because we're returning an error there we can't return NULL without setting the error.

Move the check to the caller.

The logic in ClipboardManager should make sure that both the content and mimetype are always either set or NULL but for some reason that doesn't seem to be the case always.

Merge request reports