diff options
author | António Fernandes <antoniof@gnome.org> | 2020-12-22 01:12:39 +0000 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2021-01-05 14:03:49 +0000 |
commit | 6b92435c7c6df092d6a86ebf87b11947897d9388 (patch) | |
tree | c19c94be7f7486ada4915a34c8d8adf2c29df582 /src | |
parent | 22d2c30d5f8aea3f6828a34b04e926f29a66c91a (diff) | |
download | nautilus-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.c | 10 |
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, |