summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2019-09-16 17:05:03 +0200
committerOndrej Holy <oholy@redhat.com>2019-09-20 11:53:57 +0000
commit21a98bc9d09cad2f23331f8ed66de9aa5eadaf7c (patch)
treeb0c07bb3b3ecb0e8b5541a76c9cf0cc0c57e0158
parentb93e5a4a20e5da6034fcd91859db4607c3658383 (diff)
downloadgvfs-21a98bc9d09cad2f23331f8ed66de9aa5eadaf7c.tar.gz
mtp: Remove usage of deprecated GTimeVal
GTimeVal is deprecated. Let's remove it in order to prevent the deprecation warnings.
-rw-r--r--daemon/gvfsbackendmtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index c4f1e855..fe26b8b5 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -1292,8 +1292,8 @@ get_file_info (GVfsBackend *backend,
g_file_info_set_size (info, file->filesize);
- GTimeVal modtime = { file->modificationdate, 0 };
- g_file_info_set_modification_time (info, &modtime);
+ g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED, file->modificationdate);
+ g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC, 0);
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_READ, TRUE);
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, TRUE);