summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCodeboybebop <codeboy.bebop@gmail.com>2022-07-16 14:27:11 +0000
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2022-07-16 14:27:11 +0000
commit22ecf3809c9660ea65bf8c3a8e36af67cdf76465 (patch)
treed30b059804713ac5871d68894cca948760bec1a7
parent07fdcbe3f11a6648f4cf1f47d17e2c4099dfd284 (diff)
downloadnautilus-22ecf3809c9660ea65bf8c3a8e36af67cdf76465.tar.gz
grid-view: Make GridView fill the whole height
valign property of the widget responsible for the folder content was set to GTK_ALIGN_START. This widget was moved to the top part of the parent if this widget receives enough space. However, this is not needed in this situation, since GridView already placing folders and files from top to bottom. Also, the height of the GridView was bounded by parent height and by some linear function of the number of elements in a folder. Changing valign will force the GridView to fill all allowed vertical space. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2301
-rw-r--r--src/nautilus-grid-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-grid-view.c b/src/nautilus-grid-view.c
index 8a0c8b4f2..1d91d1b92 100644
--- a/src/nautilus-grid-view.c
+++ b/src/nautilus-grid-view.c
@@ -412,7 +412,7 @@ create_view_ui (NautilusGridView *self)
widget = gtk_grid_view_new (GTK_SELECTION_MODEL (model), factory);
gtk_widget_set_focusable (widget, TRUE);
- gtk_widget_set_valign (widget, GTK_ALIGN_START);
+
/* We don't use the built-in child activation feature for clicks because it
* doesn't fill all our needs nor does it match our expected behavior.