summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authorJury Verrigni <[email protected]>2017-08-25 14:56:32 +0100
committerlukefromdc <[email protected]>2017-08-25 14:34:21 -0400
commit2a424fca8bd928223e92570fa692266c471a52b3 (patch)
tree3b28634e2d9078224b6195c98aaca190ca04fe78 /src/file-manager
parent0b1ffa6ff494e4a50053b283707c1b8b4f486129 (diff)
downloadcaja-2a424fca8bd928223e92570fa692266c471a52b3.tar.bz2
caja-2a424fca8bd928223e92570fa692266c471a52b3.tar.xz
Adds columns autosizing
Diffstat (limited to 'src/file-manager')
-rwxr-xr-xsrc/file-manager/fm-list-view.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c
index 4a2a82fd..155b3b20 100755
--- a/src/file-manager/fm-list-view.c
+++ b/src/file-manager/fm-list-view.c
@@ -1766,6 +1766,7 @@ create_and_set_up_tree_view (FMListView *view)
gtk_tree_view_column_set_sort_column_id (view->details->file_name_column, column_num);
gtk_tree_view_column_set_title (view->details->file_name_column, _("Name"));
gtk_tree_view_column_set_resizable (view->details->file_name_column, TRUE);
+ gtk_tree_view_column_set_sizing(view->details->file_name_column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
gtk_tree_view_column_pack_start (view->details->file_name_column, cell, FALSE);
gtk_tree_view_column_set_attributes (view->details->file_name_column,
@@ -1805,6 +1806,7 @@ create_and_set_up_tree_view (FMListView *view)
column);
gtk_tree_view_column_set_resizable (column, TRUE);
+ gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
}
g_free (name);
g_free (label);