mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
st/clipboard: Pass non-NULL mimetype to SelectionSourceMemory
meta_selection_source_memory_new previously had some precondition checks which would return NULL if the mimetype is NULL but now that it returns an error we can't do that anymore. Move the precondition checks to the caller instead. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3260>
This commit is contained in:
parent
8df0ccd090
commit
0586158389
1 changed files with 1 additions and 0 deletions
|
|
@ -302,6 +302,7 @@ st_clipboard_set_content (StClipboard *clipboard,
|
|||
g_return_if_fail (ST_IS_CLIPBOARD (clipboard));
|
||||
g_return_if_fail (meta_selection != NULL);
|
||||
g_return_if_fail (bytes != NULL);
|
||||
g_return_if_fail (mimetype != NULL);
|
||||
|
||||
if (!convert_type (type, &selection_type))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue