GNOME Bugzilla – Bug 751336
Don't allow changing the sort order in the recent view
Last modified: 2015-09-01 09:27:03 UTC
The recent view serves one purpose - to show recent files. The sort order of the view is implicit in the name. It therefore makes no sense to allow changing the sort order in this view, either when it is in grid or list mode. Changing the sort order actually equates to breaking the view, since the UI doesn't actually let you switch it back to the original sort order.
Removed the sort section in Recent then?
(In reply to Carlos Soriano from comment #1) > Removed the sort section in Recent then? That would work for the grid view. For list view, we could either hide the column headers entirely, or make them insensitive.
Technically, making the columns not sortable is separate from 'sensitive'. You can still interact with column headers in various ways (resize, drag, open context menu,...).
This change has now landed in the file chooser - it would be good if nautilus were consistent.
Created attachment 310400 [details] [review] files-view: remove unused header
Created attachment 310401 [details] [review] list-view: disable sorting on recent and search Following what we did in the canvas view, and what the file chooser is doing, we disallow the manual sorting on recent and search for list view as well, since it kinda defeats the point to allow a diferent sorting in those situations. However, for search we can still want some different sorting, but let's try this way and also be consistent with filechooser.
Created attachment 310402 [details] [review] files-view: make sure sort values correcteness Since last commit it's not allowed o change the sort criteria on search and recent, but the user could changed it before updating nautilus or some application could modified the metadata itself, making the user incapable to set the correct values. To fix that, override at runtime the sort criterion for recent and search, but withouth modifying the metadata.
Created attachment 310403 [details] [review] files-view: ensure sort criteria correcteness Since last commit it's not allowed o change the sort criteria on search and recent, but the user could changed it before updating nautilus or some application could modified the metadata itself, making the user incapable to set the correct values. To fix that, override at runtime the sort criterion for recent and search, but withouth modifying the metadata.
Attachment 310400 [details] pushed as 166a392 - files-view: remove unused header Attachment 310401 [details] pushed as 223d57c - list-view: disable sorting on recent and search Attachment 310403 [details] pushed as 0779b55 - files-view: ensure sort criteria correcteness