OSDN Git Service

gwenview: update MIME types in desktop files and remove test images for unsupported...
authorIvailo Monev <xakepa10@gmail.com>
Wed, 28 Sep 2022 11:02:18 +0000 (14:02 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Wed, 28 Sep 2022 11:02:18 +0000 (14:02 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
gwenview/app/gwenview.desktop
gwenview/part/gvpart.desktop
gwenview/tests/auto/documenttest.cpp
gwenview/tests/data/160216_no_size_before_decoding.eps [deleted file]
gwenview/tests/data/188191_does_not_load.tga [deleted file]
gwenview/tests/data/test.xcf [deleted file]

index 7f11a51..7b9bf6a 100644 (file)
@@ -176,7 +176,7 @@ Terminal=false
 Icon=gwenview
 Type=Application
 Categories=Qt;KDE;Graphics;Viewer;Photography;
-MimeType=inode/directory;image/gif;image/png;image/jpeg;image/bmp;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-portable-graymap;image/tiff;image/x-webp;image/webp;image/svg+xml;image/svg+xml-compressed;image/x-dcraw;image/x-dds;image/x-eps;image/x-exr;image/jp2;image/x-pcx;image/x-psd;image/x-xcf;image/katie
+MimeType=inode/directory;image/gif;image/png;image/jpeg;image/bmp;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-portable-graymap;image/x-webp;image/webp;image/svg+xml;image/svg+xml-compressed;image/x-dcraw;image/jp2;image/katie
 X-DocPath=gwenview/index.html
 # InitialPreference should be less than Dolphin so that Gwenview is not the
 # primary applications for folders.
index 2df333b..f1724ad 100644 (file)
@@ -63,7 +63,7 @@ Name[vi]=Bộ xem ảnh Gwenview
 Name[x-test]=xxGwenview Image Viewerxx
 Name[zh_CN]=Gwenview 图像查看器
 Name[zh_TW]=Gwenview 影像檢視程式
-MimeType=image/gif;image/png;image/jpeg;image/bmp;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-portable-graymap;image/tiff;image/x-webp;image/webp;image/svg+xml;image/svg+xml-compressed;image/x-dcraw;image/x-dds;image/x-eps;image/x-exr;image/jp2;image/x-pcx;image/x-psd;image/x-xcf;image/katie
+MimeType=image/gif;image/png;image/jpeg;image/bmp;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-portable-graymap;image/x-webp;image/webp;image/svg+xml;image/svg+xml-compressed;image/x-dcraw;image/jp2;image/katie
 X-KDE-ServiceTypes=KParts/ReadOnlyPart
 X-KDE-Library=gvpart
 InitialPreference=12
index 874b06c..3905f94 100644 (file)
@@ -151,12 +151,9 @@ void DocumentTest::testLoad_data()
     QTest::addColumn<int>("maxHeight");
 
     testLoad_newRow("test.png", "png");
-    testLoad_newRow("160216_no_size_before_decoding.eps", "eps");
     testLoad_newRow("160382_corrupted.jpeg", "jpeg", MimeTypeUtils::KIND_IMAGE, false, 55);
     testLoad_newRow("1x10k.png", "png");
     testLoad_newRow("1x10k.jpg", "jpeg");
-    testLoad_newRow("test.xcf", "xcf");
-    testLoad_newRow("188191_does_not_load.tga", "tga");
     testLoad_newRow("289819_does_not_load.png", "png");
     testLoad_newRow("png-with-jpeg-extension.jpg", "png");
     testLoad_newRow("jpg-with-gif-extension.gif", "jpeg");
diff --git a/gwenview/tests/data/160216_no_size_before_decoding.eps b/gwenview/tests/data/160216_no_size_before_decoding.eps
deleted file mode 100644 (file)
index 1a01919..0000000
+++ /dev/null
@@ -1,338 +0,0 @@
-%!PS-Adobe-3.0 EPSF-3.0
-%%Creator: GIMP PostScript file plugin V 1.17 by Peter Kirchgessner
-%%Title: GwenviewCrashSample.eps
-%%CreationDate: Tue Apr  1 11:29:17 2008
-%%DocumentData: Clean7Bit
-%%LanguageLevel: 2
-%%Pages: 1
-%%BoundingBox: 14 14 115 115
-%%EndComments
-%%BeginProlog
-% Use own dictionary to avoid conflicts
-10 dict begin
-%%EndProlog
-%%Page: 1 1
-% Translate for offset
-14.173228346456694 14.173228346456694 translate
-% Translate to begin of first scanline
-0 99.999999999999986 translate
-99.999999999999986 -99.999999999999986 scale
-% Image geometry
-100 100 8
-% Transformation matrix
-[ 100 0 0 100 0 0 ]
-% Strings to hold RGB-samples per scanline
-/rstr 100 string def
-/gstr 100 string def
-/bstr 100 string def
-{currentfile /ASCII85Decode filter /RunLengthDecode filter rstr readstring pop}
-{currentfile /ASCII85Decode filter /RunLengthDecode filter gstr readstring pop}
-{currentfile /ASCII85Decode filter /RunLengthDecode filter bstr readstring pop}
-true 3
-%%BeginData:         2111 ASCII Bytes
-colorimage
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3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3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-SH+0~>
-SH+0~>
-Sc=3~>
-%%EndData
-showpage
-%%Trailer
-end
-%%EOF
diff --git a/gwenview/tests/data/188191_does_not_load.tga b/gwenview/tests/data/188191_does_not_load.tga
deleted file mode 100644 (file)
index 57c19c8..0000000
Binary files a/gwenview/tests/data/188191_does_not_load.tga and /dev/null differ
diff --git a/gwenview/tests/data/test.xcf b/gwenview/tests/data/test.xcf
deleted file mode 100644 (file)
index 56c0067..0000000
Binary files a/gwenview/tests/data/test.xcf and /dev/null differ