[nautilus/clear-starred-column-header] list-view: Hide Star column title




commit d4de4a8f49f8e3e9fddb65b4af9731028d5370c1
Author: António Fernandes <antoniof gnome org>
Date:   Sat Feb 13 01:15:06 2021 +0000

    list-view: Hide Star column title
    
    While "Star" is 4 chars long in English, it's longer in other languages.
    
    This means the column may become much wider than needed for displaying
    a small star icon, which both looks bad and takes away space from other
    columns.
    
    Instead, set a 48 fixed width and set an empty label for the column
    title.

 src/nautilus-list-view.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 97e3d19d8..f785c75fb 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -2324,9 +2324,10 @@ create_and_set_up_tree_view (NautilusListView *view)
                               "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE,
                               NULL);
 
-                column = gtk_tree_view_column_new_with_attributes (label,
+                column = gtk_tree_view_column_new_with_attributes ("",
                                                                    cell,
                                                                    NULL);
+                gtk_tree_view_column_set_fixed_width (column, 48);
             }
             else
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]