summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2020-12-22 01:12:39 +0000
committerOndrej Holy <oholy@redhat.com>2021-01-05 14:03:49 +0000
commit6b92435c7c6df092d6a86ebf87b11947897d9388 (patch)
treec19c94be7f7486ada4915a34c8d8adf2c29df582 /src
parent22d2c30d5f8aea3f6828a34b04e926f29a66c91a (diff)
downloadnautilus-6b92435c7c6df092d6a86ebf87b11947897d9388.tar.gz
column-utilities: Add Created date column
Now that we have backend support for showing and sorting by btime, add an optional "Created" column to the list view. This enables using the attribute as caption for icon view too.
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-column-utilities.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nautilus-column-utilities.c b/src/nautilus-column-utilities.c
index 7f43b0060..113270548 100644
--- a/src/nautilus-column-utilities.c
+++ b/src/nautilus-column-utilities.c
@@ -41,6 +41,7 @@ static const char *default_column_order[] =
"date_modified_with_time",
"date_modified",
"date_accessed",
+ "date_created",
"recency",
"starred",
NULL
@@ -97,6 +98,15 @@ get_builtin_columns (void)
"default-sort-order", GTK_SORT_DESCENDING,
"xalign", 1.0,
NULL));
+ columns = g_list_append (columns,
+ g_object_new (NAUTILUS_TYPE_COLUMN,
+ "name", "date_created",
+ "attribute", "date_created",
+ "label", _("Created"),
+ "description", _("The date the file was created."),
+ "default-sort-order", GTK_SORT_DESCENDING,
+ "xalign", 1.0,
+ NULL));
columns = g_list_append (columns,
g_object_new (NAUTILUS_TYPE_COLUMN,