summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Bruder <[email protected]>2018-04-11 15:10:17 +0200
committerMoritz Bruder <[email protected]>2018-04-11 15:10:17 +0200
commitf6a4e9c315c2c25cee423687cbcb99f5eb45205d (patch)
tree9ba5464907cb45c6a57508eb4af6001476dd78b6
parent7a76ce41e102c1ae84b6b57ad811291e7009335e (diff)
downloadcaja-f6a4e9c315c2c25cee423687cbcb99f5eb45205d.tar.bz2
caja-f6a4e9c315c2c25cee423687cbcb99f5eb45205d.tar.xz
fm-icon-view: Show size on disk as sort criterion
This was introduced in commit b28445b3d2c42a7d2dbac97983d007e4ab58684d but has never been added to some parts of the UI.
-rw-r--r--src/file-manager/caja-icon-view-ui.xml2
-rw-r--r--src/file-manager/fm-icon-view.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/src/file-manager/caja-icon-view-ui.xml b/src/file-manager/caja-icon-view-ui.xml
index 865daaf3..b2c9eefa 100644
--- a/src/file-manager/caja-icon-view-ui.xml
+++ b/src/file-manager/caja-icon-view-ui.xml
@@ -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"/>
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
index 2d533bfc..147218ab 100644
--- a/src/file-manager/fm-icon-view.c
+++ b/src/file-manager/fm-icon-view.c
@@ -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")
},
{
@@ -1754,6 +1754,12 @@ static const GtkRadioActionEntry arrange_radio_entries[] =
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,
N_("Keep icons sorted by type in rows"),