mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
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:
parent
453957973b
commit
006a7d082b
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user