diff options
author | Ԝеѕ <[email protected]> | 2020-06-05 22:28:19 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-06-30 14:27:40 +0200 |
commit | 011198246b7a23699696d2a21fafe7d6770a1d19 (patch) | |
tree | dcc63b71c0edef5453f4ac6823037430a2f50742 /src | |
parent | 404a3f2710e0fda37fc2af36d9df5c188e34798c (diff) | |
download | caja-011198246b7a23699696d2a21fafe7d6770a1d19.tar.bz2 caja-011198246b7a23699696d2a21fafe7d6770a1d19.tar.xz |
caja properties-window: display dir last modified
closes #1406
based on https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/409/diffs
Diffstat (limited to 'src')
-rw-r--r-- | src/file-manager/fm-properties-window.c | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index 27e77c79..576fd107 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -2652,7 +2652,9 @@ should_show_accessed_date (FMPropertiesWindow *window) * day decide that it is useful, we should separately * consider whether it's useful for "trash:". */ - if (file_list_all_directories (window->details->target_files)) { + if (file_list_all_directories (window->details->target_files) + || is_multi_file_window (window)) + { return FALSE; } @@ -2660,6 +2662,12 @@ should_show_accessed_date (FMPropertiesWindow *window) } static gboolean +should_show_modified_date (FMPropertiesWindow *window) +{ + return !is_multi_file_window (window); +} + +static gboolean should_show_link_target (FMPropertiesWindow *window) { if (!is_multi_file_window (window) @@ -3325,13 +3333,22 @@ create_basic_page (FMPropertiesWindow *window) FALSE); } - if (should_show_accessed_date (window)) { + if (should_show_accessed_date (window) + || should_show_modified_date (window)) + { append_blank_row (grid); - + } + + if (should_show_accessed_date (window)) + { append_title_value_pair (window, grid, _("Accessed:"), "date_accessed", INCONSISTENT_STATE_STRING, FALSE); + } + + if (should_show_modified_date (window)) + { append_title_value_pair (window, grid, _("Modified:"), "date_modified", INCONSISTENT_STATE_STRING, |