[nautilus/wip/antoniof/flowbox-to-gridview: 20/24] 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: 20/24] view-icon-controller: Stop setting column/row spacing
- Date: Wed, 9 Feb 2022 18:11:42 +0000 (UTC)
commit f47afd0a9f7fe29f98a055b95e36350e6f91f1c8
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 child widget margins instead.
src/nautilus-view-icon-controller.c | 6 ++++--
src/resources/css/Adwaita.css | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-view-icon-controller.c b/src/nautilus-view-icon-controller.c
index a624a32a0..9f7fcefbb 100644
--- a/src/nautilus-view-icon-controller.c
+++ b/src/nautilus-view-icon-controller.c
@@ -1350,6 +1350,10 @@ setup_item_ui (GtkWidget **child,
gtk_widget_set_halign (*child, GTK_ALIGN_CENTER);
gtk_widget_set_valign (*child, GTK_ALIGN_START);
+ gtk_widget_set_margin_top (*child, 3);
+ gtk_widget_set_margin_bottom (*child, 3);
+ gtk_widget_set_margin_start (*child, 3);
+ gtk_widget_set_margin_end (*child, 3);
}
static GtkWidget *
@@ -1386,8 +1390,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);
return flowbox;
}
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index b201c9ac9..115523e28 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -152,7 +152,7 @@
/* Grid view */
.nautilus-grid-view flowbox {
- padding: 18px;
+ padding: 15px;
}
.nautilus-grid-view flowboxchild {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]