[nautilus] grid-view: Make GridView fill the whole height
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] grid-view: Make GridView fill the whole height
- Date: Sat, 16 Jul 2022 14:27:12 +0000 (UTC)
commit 22ecf3809c9660ea65bf8c3a8e36af67cdf76465
Author: Codeboybebop <codeboy bebop gmail com>
Date: Sat Jul 16 14:27:11 2022 +0000
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
src/nautilus-grid-view.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]