[nautilus] grid-view: Make cell sizes homogeneous



commit 82be62db0e79b3f654511ed134d0e9a06a5ab38a
Author: António Fernandes <antoniof gnome org>
Date:   Fri Jul 29 15:40:32 2022 +0000

    grid-view: Make cell sizes homogeneous
    
    Old grid view had a lot of "background" space, with only clicks on the icon or file name acting on items.
    
    For the new view, we've been constraining the width and height of the item area to those required by 
icon, filename and captions, trying to preserve the advantages of the old icon view.
    
    However, after design review, it's been decided the uneven sizes are undesirable.
    
    Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2368

 src/nautilus-grid-view.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/nautilus-grid-view.c b/src/nautilus-grid-view.c
index 74a80e1f5..1e8e54569 100644
--- a/src/nautilus-grid-view.c
+++ b/src/nautilus-grid-view.c
@@ -361,8 +361,6 @@ bind_cell (GtkSignalListItemFactory *factory,
          * that's why we need to complete the widget setup process here, on the
          * first time ::bind is emitted. */
         parent = gtk_widget_get_parent (cell);
-        gtk_widget_set_halign (parent, GTK_ALIGN_CENTER);
-        gtk_widget_set_valign (parent, GTK_ALIGN_START);
         gtk_widget_set_margin_top (parent, 3);
         gtk_widget_set_margin_bottom (parent, 3);
         gtk_widget_set_margin_start (parent, 3);


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