summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-08-28 14:17:18 +0300
committermonsta <[email protected]>2017-08-31 16:28:39 +0300
commitcb8e3930d44bbbbc6d3faf78f7826be467978825 (patch)
tree158ad625a8aee2a61fdafc3da77e2e63bb929d6c
parent6ace67d382e7a138e86a5677dc4a999853d3ecdc (diff)
downloadcaja-cb8e3930d44bbbbc6d3faf78f7826be467978825.tar.bz2
caja-cb8e3930d44bbbbc6d3faf78f7826be467978825.tar.xz
list view: fix large icon margins on zooming out
ported from: https://git.gnome.org/browse/nautilus/commit/?id=4f17fb7db7b8736ebb4fe82ddb1c279777847730 https://git.gnome.org/browse/nautilus/commit/?id=41de4e52b43c8ed5c9118860dac7caa303ebbc5b
-rw-r--r--src/file-manager/fm-list-view.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index faca4196..acdd6226 100644
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -2776,6 +2776,9 @@ fm_list_view_set_zoom_level (FMListView *view,
gtk_cell_renderer_set_fixed_size (GTK_CELL_RENDERER (view->details->pixbuf_cell),
-1, icon_size);
+ /* FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=641518 */
+ gtk_tree_view_columns_autosize (view->details->tree_view);
+
fm_directory_view_update_menus (FM_DIRECTORY_VIEW (view));
gtk_tree_model_foreach (GTK_TREE_MODEL (view->details->model), list_view_changed_foreach, NULL);