[mutter/gnome-3-34] core: Define specific image formats to be stored in the clipboard manager
- From: Robert Mader <rmader src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-34] core: Define specific image formats to be stored in the clipboard manager
- Date: Mon, 3 Feb 2020 23:31:15 +0000 (UTC)
commit 59da900a457ae3ee3d5369f95e298b09abc35743
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 16 13:20:19 2019 +0100
core: Define specific image formats to be stored in the clipboard manager
And order those preferences in order of lossiness (jpeg < png < bmp). This
avoids us from prefering other formats that are not useful or widely
recognized.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/939
(cherry picked from commit 832c0fb0ea79d4cf904b1519b11ef0b11cbbfbdc)
src/core/meta-clipboard-manager.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/core/meta-clipboard-manager.c b/src/core/meta-clipboard-manager.c
index 3bda19a19..639e5a0e0 100644
--- a/src/core/meta-clipboard-manager.c
+++ b/src/core/meta-clipboard-manager.c
@@ -32,7 +32,9 @@ static struct {
const char *mimetype_glob;
ssize_t max_transfer_size;
} supported_mimetypes[] = {
- { "image/*", MAX_IMAGE_SIZE },
+ { "image/jpeg", MAX_IMAGE_SIZE },
+ { "image/png", MAX_IMAGE_SIZE },
+ { "image/bmp", 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]