Skip to content
Permalink
Browse files

fm-icon-view: Show size on disk as sort criterion

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 f6a4e9c315c2c25cee423687cbcb99f5eb45205d
Showing with 9 additions and 1 deletion.
  1. +2 −0 src/file-manager/caja-icon-view-ui.xml
  2. +7 −1 src/file-manager/fm-icon-view.c
@@ -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"/>
@@ -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"/>
@@ -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")
},
{
@@ -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,

0 comments on commit f6a4e9c

Please sign in to comment.
You can’t perform that action at this time.