[mutter/gnome-3-34] core: Extend list of image formats to be stored in the clipboard manager



commit 2235629d25175c8d000f6595179b7de690192f31
Author: Robert Mader <robert mader posteo de>
Date:   Mon Feb 3 16:43:56 2020 +0100

    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 b91d66bf983c427edfa65914a188a4fc263dadbc)

 src/core/meta-clipboard-manager.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/core/meta-clipboard-manager.c b/src/core/meta-clipboard-manager.c
index 639e5a0e0..688693279 100644
--- a/src/core/meta-clipboard-manager.c
+++ b/src/core/meta-clipboard-manager.c
@@ -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 },
 };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]