diff options
author | Ondrej Holy <oholy@redhat.com> | 2017-01-19 16:13:51 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-02-13 08:12:48 -0500 |
commit | 006a7d082bc3aacc8d73c150f279165f1525d52f (patch) | |
tree | f44499e5f12e9272f3c4fa43aa1bcd33c0343456 /gio/gfileinfo.h | |
parent | 453957973b48bf9e33e1f01fd8d1e0827bd7b915 (diff) | |
download | glib-006a7d082bc3aacc8d73c150f279165f1525d52f.tar.gz |
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
Diffstat (limited to 'gio/gfileinfo.h')
-rw-r--r-- | gio/gfileinfo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gio/gfileinfo.h b/gio/gfileinfo.h index 3fa61bca5..10832db00 100644 --- a/gio/gfileinfo.h +++ b/gio/gfileinfo.h @@ -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; |