summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-28 12:07:58 +0200
committerraveit65 <[email protected]>2021-04-20 19:40:09 +0200
commit0eb7520d23cc4ca6cdd9b6c97d3f6cbafcdfc927 (patch)
treef65d5ff92cb5ca3f62f94881d64232f0c8f0efe0 /src
parenta940185ca0ee157b980250d7f2f5bef842e3625f (diff)
downloadcaja-0eb7520d23cc4ca6cdd9b6c97d3f6cbafcdfc927.tar.bz2
caja-0eb7520d23cc4ca6cdd9b6c97d3f6cbafcdfc927.tar.xz
Add creation time support
Diffstat (limited to 'src')
-rw-r--r--src/caja-file-management-properties.c1
-rw-r--r--src/caja-file-management-properties.ui3
-rw-r--r--src/file-manager/fm-icon-view.c13
-rw-r--r--src/file-manager/fm-properties-window.c4
4 files changed, 21 insertions, 0 deletions
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c
index 3c702cc3..5a4368a7 100644
--- a/src/caja-file-management-properties.c
+++ b/src/caja-file-management-properties.c
@@ -111,6 +111,7 @@ static const char * const sort_order_values[] =
"size_on_disk",
"type",
"mtime",
+ "btime",
"atime",
"emblems",
"extension",
diff --git a/src/caja-file-management-properties.ui b/src/caja-file-management-properties.ui
index 6449694a..80f6e8aa 100644
--- a/src/caja-file-management-properties.ui
+++ b/src/caja-file-management-properties.ui
@@ -93,6 +93,9 @@
<col id="0" translatable="yes">By Modification Date</col>
</row>
<row>
+ <col id="0" translatable="yes">By Creation Date</col>
+ </row>
+ <row>
<col id="0" translatable="yes">By Access Date</col>
</row>
<row>
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
index 664fd752..b6345018 100644
--- a/src/file-manager/fm-icon-view.c
+++ b/src/file-manager/fm-icon-view.c
@@ -159,6 +159,13 @@ static const SortCriterion sort_criteria[] =
N_("Keep icons sorted by modification date in rows")
},
{
+ CAJA_FILE_SORT_BY_BTIME,
+ "creation date",
+ "Sort by Creation Date",
+ N_("by _Creation Date"),
+ N_("Keep icons sorted by creation date in rows")
+ },
+ {
CAJA_FILE_SORT_BY_EMBLEMS,
"emblems",
"Sort by Emblems",
@@ -1856,6 +1863,12 @@ static const GtkRadioActionEntry arrange_radio_entries[] =
CAJA_FILE_SORT_BY_MTIME
},
{
+ "Sort by Creation Date", NULL,
+ N_("By _Creation Date"), NULL,
+ N_("Keep icons sorted by creation date in rows"),
+ CAJA_FILE_SORT_BY_BTIME
+ },
+ {
"Sort by Emblems", NULL,
N_("By _Emblems"), NULL,
N_("Keep icons sorted by emblems in rows"),
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c
index e132b60f..944b18f0 100644
--- a/src/file-manager/fm-properties-window.c
+++ b/src/file-manager/fm-properties-window.c
@@ -3362,6 +3362,10 @@ create_basic_page (FMPropertiesWindow *window)
"date_modified",
INCONSISTENT_STATE_STRING,
FALSE);
+ append_title_value_pair (window, grid, _("Created:"),
+ "date_created",
+ INCONSISTENT_STATE_STRING,
+ FALSE);
}
if (should_show_free_space (window)) {