From 0eb7520d23cc4ca6cdd9b6c97d3f6cbafcdfc927 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 28 Mar 2021 12:07:58 +0200 Subject: Add creation time support --- src/caja-file-management-properties.c | 1 + src/caja-file-management-properties.ui | 3 +++ src/file-manager/fm-icon-view.c | 13 +++++++++++++ src/file-manager/fm-properties-window.c | 4 ++++ 4 files changed, 21 insertions(+) (limited to 'src') 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 @@ -92,6 +92,9 @@ By Modification Date + + By Creation Date + By Access Date 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 @@ -158,6 +158,13 @@ static const SortCriterion sort_criteria[] = N_("by Modification _Date"), 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", @@ -1855,6 +1862,12 @@ static const GtkRadioActionEntry arrange_radio_entries[] = N_("Keep icons sorted by modification date in rows"), 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, 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)) { -- cgit v1.2.1