summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-self-test.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-10-09 20:51:43 +0100
committerRichard Hughes <richard@hughsie.com>2017-10-09 20:51:43 +0100
commit65591d8b5f16dcb399f69d33b1f30f4e564aec2f (patch)
tree9c3eca35c76276c6be53c18bb8b13b3546a79597 /libappstream-glib/as-self-test.c
parenta1481d201d089f9e70a0cf48a0424315e0f6cdaf (diff)
downloadappstream-glib-65591d8b5f16dcb399f69d33b1f30f4e564aec2f.tar.gz
Add as_app_get_screenshot_default()
Diffstat (limited to 'libappstream-glib/as-self-test.c')
-rw-r--r--libappstream-glib/as-self-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c
index d8b4889..f97320b 100644
--- a/libappstream-glib/as-self-test.c
+++ b/libappstream-glib/as-self-test.c
@@ -1996,7 +1996,7 @@ as_test_app_validate_appdata_good_func (void)
/* check screenshots were loaded */
screenshots = as_app_get_screenshots (app);
g_assert_cmpint (screenshots->len, ==, 1);
- ss = g_ptr_array_index (screenshots, 0);
+ ss = as_app_get_screenshot_default (app);
g_assert_cmpint (as_screenshot_get_kind (ss), ==, AS_SCREENSHOT_KIND_DEFAULT);
images = as_screenshot_get_images (ss);
g_assert_cmpint (images->len, ==, 1);