From 011198246b7a23699696d2a21fafe7d6770a1d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D4=9C=D0=B5=D1=95?= <5124946+wesinator@users.noreply.github.com> Date: Fri, 5 Jun 2020 22:28:19 -0400 Subject: caja properties-window: display dir last modified closes #1406 based on https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/409/diffs --- src/file-manager/fm-properties-window.c | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'src/file-manager/fm-properties-window.c') 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,13 +2652,21 @@ 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; } return TRUE; } +static gboolean +should_show_modified_date (FMPropertiesWindow *window) +{ + return !is_multi_file_window (window); +} + static gboolean should_show_link_target (FMPropertiesWindow *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, -- cgit v1.2.1