[glib] fileinfo: Add G_FILE_ATTRIBUTE_RECENT_MODIFIED attribute



commit 006a7d082bc3aacc8d73c150f279165f1525d52f
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Jan 19 16:13:51 2017 +0100

    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

 docs/reference/gio/gio-sections.txt |    1 +
 gio/gfileinfo.h                     |   11 +++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gio/gio-sections.txt b/docs/reference/gio/gio-sections.txt
index 85fd2b9..61cf0d4 100644
--- a/docs/reference/gio/gio-sections.txt
+++ b/docs/reference/gio/gio-sections.txt
@@ -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
diff --git a/gio/gfileinfo.h b/gio/gfileinfo.h
index 3fa61bc..10832db 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]