diff options
author | rbuj <[email protected]> | 2021-03-28 12:07:58 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-21 19:33:51 +0200 |
commit | 14e4b2f88f45c6dfb8739ba6979057274d4c5408 (patch) | |
tree | a55cec8bfa249e226b82cf1572bba8f9d0b0b0c7 /src | |
parent | 3c3ca50505fac6c93d76addf10f0eae1f7991743 (diff) | |
download | caja-14e4b2f88f45c6dfb8739ba6979057274d4c5408.tar.bz2 caja-14e4b2f88f45c6dfb8739ba6979057274d4c5408.tar.xz |
Add creation time support
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-file-management-properties.c | 1 | ||||
-rw-r--r-- | src/caja-file-management-properties.ui | 3 | ||||
-rw-r--r-- | src/file-manager/fm-icon-view.c | 13 | ||||
-rw-r--r-- | src/file-manager/fm-properties-window.c | 4 |
4 files changed, 21 insertions, 0 deletions
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c index 199255be..e0d8419c 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 adeba93d..146b0a3c 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 69ce70d0..c654bb80 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)) { |