[gnome-software] trivial: Show the unique-id of the related apps, not just the number
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Show the unique-id of the related apps, not just the number
- Date: Tue, 20 Jun 2017 16:05:01 +0000 (UTC)
commit 3e9fc04ee2a2a8f6c4faa87cf868e5a1713fd09f
Author: Richard Hughes <richard hughsie com>
Date: Tue Jun 20 16:22:46 2017 +0100
trivial: Show the unique-id of the related apps, not just the number
lib/gs-app.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index c6ba358..8ed7e7e 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -532,8 +532,10 @@ gs_app_to_string (GsApp *app)
gs_app_kv_printf (str, "price", "%s %.2f",
gs_price_get_currency (app->price),
gs_price_get_amount (app->price));
- if (app->related->len > 0)
- gs_app_kv_printf (str, "related", "%u", app->related->len);
+ for (i = 0; i < app->related->len; i++) {
+ GsApp *app_tmp = g_ptr_array_index (app->related, i);
+ gs_app_kv_lpad (str, "related", gs_app_get_unique_id (app_tmp));
+ }
if (app->history->len > 0)
gs_app_kv_printf (str, "history", "%u", app->history->len);
for (i = 0; i < app->categories->len; i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]