[nautilus/wip/antoniof/flowbox-to-gridview: 7/11] view-icon-controller: Stop setting column/row spacing
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/flowbox-to-gridview: 7/11] view-icon-controller: Stop setting column/row spacing
- Date: Wed, 2 Feb 2022 18:42:26 +0000 (UTC)
commit b1e5327a4abb9edb09680efa8c93ae91491907cf
Author: António Fernandes <antoniof gnome org>
Date: Mon Jan 31 12:45:24 2022 +0000
view-icon-controller: Stop setting column/row spacing
There is no GtkGridView equivalent for this GtkFlowBox API.
Use CSS margins instead.
src/nautilus-view-icon-controller.c | 2 --
src/resources/css/Adwaita.css | 6 +++++-
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-view-icon-controller.c b/src/nautilus-view-icon-controller.c
index 62deb0698..5bb175b72 100644
--- a/src/nautilus-view-icon-controller.c
+++ b/src/nautilus-view-icon-controller.c
@@ -1386,8 +1386,6 @@ create_view_ui (NautilusViewIconController *self)
gtk_flow_box_set_max_children_per_line (flowbox, 20);
gtk_flow_box_set_selection_mode (flowbox, GTK_SELECTION_MULTIPLE);
gtk_flow_box_set_homogeneous (flowbox, FALSE);
- gtk_flow_box_set_column_spacing (flowbox, 6);
- gtk_flow_box_set_row_spacing (flowbox, 6);
gtk_widget_add_css_class (widget, "nautilus-grid-view");
return flowbox;
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index 565ccaa50..6f856a6e5 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -152,7 +152,11 @@
/* Grid view */
.nautilus-grid-view {
- padding: 18px;
+ padding: 15px;
+}
+
+.nautilus-grid-view > * {
+ margin: 3px;
}
.nautilus-grid-view .thumbnail {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]