mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-03 21:49:06 -04:00
repo: Use the new number column support
This code was moved to the table printer itself.
This commit is contained in:
committed by
Alexander Larsson
parent
ea93b3977d
commit
c3e017d9de
@@ -59,13 +59,6 @@ print_info (GVariant *summary)
|
||||
}
|
||||
}
|
||||
|
||||
static char *
|
||||
find_decimal_point (const char *text)
|
||||
{
|
||||
// FIXME use localeconv
|
||||
return strchr (text, '.');
|
||||
}
|
||||
|
||||
static void
|
||||
print_branches (GVariant *summary)
|
||||
{
|
||||
@@ -97,12 +90,8 @@ print_branches (GVariant *summary)
|
||||
g_autofree char *download = g_format_size (GUINT64_FROM_BE (download_size));
|
||||
|
||||
flatpak_table_printer_add_column (printer, ref);
|
||||
flatpak_table_printer_add_aligned_column (printer,
|
||||
installed,
|
||||
find_decimal_point (installed) - installed);
|
||||
flatpak_table_printer_add_aligned_column (printer,
|
||||
download,
|
||||
find_decimal_point (download) - download);
|
||||
flatpak_table_printer_add_decimal_column (printer, installed);
|
||||
flatpak_table_printer_add_decimal_column (printer, download);
|
||||
flatpak_table_printer_finish_row (printer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user