Skip to content

Commit

Permalink
fm-icon-view: Show size on disk as sort criterion
Browse files Browse the repository at this point in the history
This was introduced in commit b28445b
but has never been added to some parts of the UI.
  • Loading branch information
muesli4 committed Apr 11, 2018
1 parent 7a76ce4 commit f6a4e9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/file-manager/caja-icon-view-ui.xml
Expand Up @@ -13,6 +13,7 @@
<placeholder name="Auto Layout">
<menuitem name="Sort by Name" action="Sort by Name"/>
<menuitem name="Sort by Size" action="Sort by Size"/>
<menuitem name="Sort by Size on Disk" action="Sort by Size on Disk"/>
<menuitem name="Sort by Type" action="Sort by Type"/>
<menuitem name="Sort by Modification Date" action="Sort by Modification Date"/>
<menuitem name="Sort by Emblems" action="Sort by Emblems"/>
Expand All @@ -37,6 +38,7 @@
<placeholder name="Auto Layout">
<menuitem name="Sort by Name" action="Sort by Name"/>
<menuitem name="Sort by Size" action="Sort by Size"/>
<menuitem name="Sort by Size on Disk" action="Sort by Size on Disk"/>
<menuitem name="Sort by Type" action="Sort by Type"/>
<menuitem name="Sort by Modification Date" action="Sort by Modification Date"/>
<menuitem name="Sort by Emblems" action="Sort by Emblems"/>
Expand Down
8 changes: 7 additions & 1 deletion src/file-manager/fm-icon-view.c
Expand Up @@ -139,7 +139,7 @@ static const SortCriterion sort_criteria[] =
CAJA_FILE_SORT_BY_SIZE_ON_DISK,
"size_on_disk",
"Sort by Size on Disk",
N_("by Size on Disk"),
N_("by S_ize on Disk"),
N_("Keep icons sorted by disk usage in rows")
},
{
Expand Down Expand Up @@ -1753,6 +1753,12 @@ static const GtkRadioActionEntry arrange_radio_entries[] =
N_("Keep icons sorted by size in rows"),
CAJA_FILE_SORT_BY_SIZE
},
{
"Sort by Size on Disk", NULL,
N_("By S_ize on Disk"), NULL,
N_("Keep icons sorted by disk usage in rows"),
CAJA_FILE_SORT_BY_SIZE_ON_DISK
},
{
"Sort by Type", NULL,
N_("By _Type"), NULL,
Expand Down

0 comments on commit f6a4e9c

Please sign in to comment.