summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-10-20 21:48:06 +0100
committerRichard Hughes <richard@hughsie.com>2014-10-20 21:48:06 +0100
commit4e03a9af55cc9f83b42527ff39276eac7409543c (patch)
tree86096ccd38ff3e4449d7005b1f376da0ee87e69d
parentf8da7b1fbb47aeb19d8027c52a4d3f6be742615e (diff)
downloadappstream-glib-4e03a9af55cc9f83b42527ff39276eac7409543c.tar.gz
If the font priorities are the same use the screenshot comment to order them
-rw-r--r--libappstream-glib/as-app.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index 46aa211..7c00f23 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -2009,7 +2009,8 @@ as_app_sort_screenshots (gconstpointer a, gconstpointer b)
return 1;
if (as_screenshot_get_priority (ss1) > as_screenshot_get_priority (ss2))
return -1;
- return 0;
+ return g_strcmp0 (as_screenshot_get_caption (ss1, NULL),
+ as_screenshot_get_caption (ss2, NULL));
}
/**