diff options
author | Richard Hughes <richard@hughsie.com> | 2014-07-09 08:46:46 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-07-09 08:46:46 +0100 |
commit | c137bf055ed713ed4f9f8ba09699d12b96a5a255 (patch) | |
tree | 98baf7dfea88519712952f5e1452da5ef1af6bcf /client | |
parent | fc55a526b89a898ccfa3676b0338bfc94fbe2444 (diff) | |
download | appstream-glib-c137bf055ed713ed4f9f8ba09699d12b96a5a255.tar.gz |
Remove as_util_get_possible_kudos() as it's now unused
Diffstat (limited to 'client')
-rw-r--r-- | client/as-util.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/client/as-util.c b/client/as-util.c index 013f0c2..e68fae3 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -1087,7 +1087,7 @@ as_util_status_html_write_app (AsApp *app, GString *html) gchar *tmp; guint i; guint j; - const gchar * const *kudos; + GPtrArray *kudos; g_string_append_printf (html, "<a name=\"%s\"/><h2>%s</h2>\n", as_app_get_id (app), as_app_get_id (app)); @@ -1187,12 +1187,11 @@ as_util_status_html_write_app (AsApp *app, GString *html) /* add all possible Kudo's for desktop files */ if (as_app_get_id_kind (app) == AS_ID_KIND_DESKTOP) { - kudos = as_util_get_possible_kudos (); - for (i = 0; kudos[i] != NULL; i++) { - pkgname = as_app_get_metadata_item (app, kudos[i]) ? - "Yes" : "No"; + kudos = as_app_get_kudos (app); + for (i = 0; i < kudos->len; i++) { + pkgname = g_ptr_array_index (kudos, i); g_string_append_printf (html, "<tr><td>%s</td><td>%s</td></tr>\n", - kudos[i], pkgname); + pkgname, "Yes"); } } |