summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorԜеѕ <[email protected]>2020-06-05 22:28:19 -0400
committerraveit65 <[email protected]>2022-07-21 17:39:10 +0200
commit737b30dd506be9c3c5a903dbfadce58eebcb8d8a (patch)
treee5819e1f714c52795302bce0a9114a4cb4d4a576
parent02ae5d950423845c0af0253a1be2a4c767b9486b (diff)
downloadcaja-737b30dd506be9c3c5a903dbfadce58eebcb8d8a.tar.bz2
caja-737b30dd506be9c3c5a903dbfadce58eebcb8d8a.tar.xz
caja properties-window: display dir last modified
closes #1406 based on https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/409/diffs
-rw-r--r--src/file-manager/fm-properties-window.c23
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 781c547f..6fc23b76 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,