[gnome-software] Do not show a warning if the source image matches the small or large screenshot sizes



commit 98a0c39d9f8700483b1c048c27218852b4602d0d
Author: Richard Hughes <richard hughsie com>
Date:   Fri Oct 11 20:14:29 2013 +0100

    Do not show a warning if the source image matches the small or large screenshot sizes

 src/plugins/gs-plugin-appstream.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index ede4c77..fdca4cd 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -403,6 +403,8 @@ gs_plugin_refine_add_screenshots (GsApp *app, AppstreamApp *item)
                                              ss_kind == APPSTREAM_SCREENSHOT_KIND_DEFAULT);
                for (j = 0; j < images_as->len; j++) {
                        im = g_ptr_array_index (images_as, j);
+                       if (appstream_image_get_kind (im) == APPSTREAM_IMAGE_KIND_SOURCE)
+                               continue;
                        gs_screenshot_add_image (screenshot,
                                                 appstream_image_get_url (im),
                                                 appstream_image_get_width (im),


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