[gnome-software] snap: Set screenshot dimensions
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Set screenshot dimensions
- Date: Wed, 31 May 2017 07:55:00 +0000 (UTC)
commit c5680d88d6d4049c0e96c22c6f91d381388f7110
Author: Robert Ancell <robert ancell canonical com>
Date: Wed May 31 19:48:15 2017 +1200
snap: Set screenshot dimensions
plugins/snap/gs-plugin-snap.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 0f55a26..b5b5cf1 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -252,6 +252,8 @@ gs_plugin_snap_refine_app (GsPlugin *plugin,
image = as_image_new ();
as_image_set_url (image, snapd_screenshot_get_url (screenshot));
as_image_set_kind (image, AS_IMAGE_KIND_SOURCE);
+ as_image_set_width (image, snapd_screenshot_get_width (screenshot));
+ as_image_set_height (image, snapd_screenshot_get_height (screenshot));
as_screenshot_add_image (ss, image);
gs_app_add_screenshot (app, ss);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]