[gnome-notes/133-gtimeval-deprecation] own-cloud-provider: GTimeVal Deprecation
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes/133-gtimeval-deprecation] own-cloud-provider: GTimeVal Deprecation
- Date: Wed, 16 Oct 2019 02:33:22 +0000 (UTC)
commit a6ad1e7db729de549e382c32f0a3ace445b377e2
Author: Isaque Galdino <igaldino gmail com>
Date: Tue Oct 15 23:32:30 2019 -0300
own-cloud-provider: GTimeVal Deprecation
src/libbiji/provider/biji-own-cloud-provider.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/libbiji/provider/biji-own-cloud-provider.c b/src/libbiji/provider/biji-own-cloud-provider.c
index da7a72f..2ae8b2a 100644
--- a/src/libbiji/provider/biji-own-cloud-provider.c
+++ b/src/libbiji/provider/biji-own-cloud-provider.c
@@ -365,7 +365,6 @@ enumerate_next_files_ready_cb (GObject *source,
for (l = files; l != NULL; l = l->next)
{
GFileInfo *info;
- GTimeVal time = {0,0};
BijiOCloudItem *item;
info = l->data;
@@ -375,9 +374,8 @@ enumerate_next_files_ready_cb (GObject *source,
(g_file_get_parse_name (self->folder),
"/", item->set.title, NULL);
- g_file_info_get_modification_time (info, &time);
- item->set.mtime = time.tv_sec;
- item->set.created = g_file_info_get_attribute_uint64 (info, "time:created");
+ item->set.mtime = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED);
+ item->set.created = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_CREATED);
item->set.datasource_urn = g_strdup (self->info.datasource);
if (self->mount == NULL) /* offline (synced mode) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]