mirror of
https://github.com/flatpak/flatpak.git
synced 2026-07-05 13:46:48 -04:00
list, search: ellipsize more columns
The application IDs also tend to be long, so ellipsize that column as well. Closes: #2448 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
d6c59020a2
commit
9765ceea3d
@@ -170,6 +170,9 @@ print_table_for_refs (gboolean print_apps,
|
||||
flatpak_table_printer_set_column_ellipsize (printer,
|
||||
find_column (columns, "description", NULL),
|
||||
TRUE);
|
||||
flatpak_table_printer_set_column_ellipsize (printer,
|
||||
find_column (columns, "application", NULL),
|
||||
TRUE);
|
||||
|
||||
if (app_runtime)
|
||||
{
|
||||
|
||||
@@ -261,6 +261,8 @@ print_matches (Column *columns, GSList *matches)
|
||||
flatpak_get_window_size (&rows, &cols);
|
||||
ellip = find_column (columns, "description", NULL);
|
||||
flatpak_table_printer_set_column_ellipsize (printer, ellip, TRUE);
|
||||
ellip = find_column (columns, "application", NULL);
|
||||
flatpak_table_printer_set_column_ellipsize (printer, ellip, TRUE);
|
||||
flatpak_table_printer_print_full (printer, 0, cols, NULL, NULL);
|
||||
g_print ("\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user