[gnome-software] trivial: Show the size of the categories in gnome-software-cmd
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Show the size of the categories in gnome-software-cmd
- Date: Thu, 2 Jun 2016 11:14:26 +0000 (UTC)
commit ca34f1752b00547a1bd51f894ca8b007dd5d2a87
Author: Richard Hughes <richard hughsie com>
Date: Thu Jun 2 11:32:56 2016 +0100
trivial: Show the size of the categories in gnome-software-cmd
src/gs-cmd.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-cmd.c b/src/gs-cmd.c
index 776ea7f..38eea44 100644
--- a/src/gs-cmd.c
+++ b/src/gs-cmd.c
@@ -89,9 +89,10 @@ gs_cmd_show_results_categories (GPtrArray *list)
parent = gs_category_get_parent (cat);
if (parent != NULL){
g_autofree gchar *id = NULL;
- id = g_strdup_printf ("%s/%s",
+ id = g_strdup_printf ("%s/%s [%i]",
gs_category_get_id (parent),
- gs_category_get_id (cat));
+ gs_category_get_id (cat),
+ gs_category_get_size (cat));
tmp = gs_cmd_pad_spaces (id, 32);
g_print ("%s : %s\n",
tmp, gs_category_get_name (cat));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]