fileinfo: Add G_FILE_ATTRIBUTE_RECENT_MODIFIED attribute

Add filesystem attribute to propagate time, when the metadata for the file
in "recent:///" was last changed. This attribute is needed for sorting
recent backend files in client applications.

https://bugzilla.gnome.org/show_bug.cgi?id=777507
This commit is contained in:
Ondrej Holy 2017-01-19 16:13:51 +01:00 committed by Matthias Clasen
parent 453957973b
commit 006a7d082b
2 changed files with 12 additions and 0 deletions

View File

@ -332,6 +332,7 @@ G_FILE_ATTRIBUTE_SELINUX_CONTEXT
G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT
G_FILE_ATTRIBUTE_TRASH_DELETION_DATE
G_FILE_ATTRIBUTE_TRASH_ORIG_PATH
G_FILE_ATTRIBUTE_RECENT_MODIFIED
G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW
G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION
g_file_info_new

View File

@ -867,6 +867,17 @@ typedef struct _GFileInfoClass GFileInfoClass;
**/
#define G_FILE_ATTRIBUTE_TRASH_DELETION_DATE "trash::deletion-date" /* string */
/**
* G_FILE_ATTRIBUTE_RECENT_MODIFIED:
*
* A key in the "recent" namespace for getting time, when the metadata for the
* file in `recent:///` was last changed. Corresponding #GFileAttributeType is
* %G_FILE_ATTRIBUTE_TYPE_INT64.
*
* Since: 2.52
**/
#define G_FILE_ATTRIBUTE_RECENT_MODIFIED "recent::modified" /* int64 (time_t) */
GLIB_AVAILABLE_IN_ALL
GType g_file_info_get_type (void) G_GNUC_CONST;