mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
core: Extend list of image formats to be stored in the clipboard manager
These types are probably common enough to support.
See also:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1034
(cherry picked from commit b91d66bf98
)
This commit is contained in:
parent
59da900a45
commit
2235629d25
@ -32,9 +32,13 @@ static struct {
|
||||
const char *mimetype_glob;
|
||||
ssize_t max_transfer_size;
|
||||
} supported_mimetypes[] = {
|
||||
{ "image/gif", MAX_IMAGE_SIZE },
|
||||
{ "image/jpeg", MAX_IMAGE_SIZE },
|
||||
{ "image/webp", MAX_IMAGE_SIZE },
|
||||
{ "image/png", MAX_IMAGE_SIZE },
|
||||
{ "image/bmp", MAX_IMAGE_SIZE },
|
||||
{ "image/tiff", MAX_IMAGE_SIZE },
|
||||
{ "image/svg+xml", MAX_IMAGE_SIZE },
|
||||
{ "text/plain", MAX_TEXT_SIZE },
|
||||
{ "text/plain;charset=utf-8", MAX_TEXT_SIZE },
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user