summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-query.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-01-26 10:13:23 +0800
committerlukefromdc <[email protected]>2019-01-28 22:24:13 +0000
commit0a37810676a9ca7fbae5fe2f5fb8256846085c5a (patch)
tree0b7b9a5559d507719b5ec79597a0ceefff33fed2 /libcaja-private/caja-query.c
parent3a22d4c63d42009024830f494fe0ec3679382631 (diff)
downloadcaja-0a37810676a9ca7fbae5fe2f5fb8256846085c5a.tar.bz2
caja-0a37810676a9ca7fbae5fe2f5fb8256846085c5a.tar.xz
Fixed the value of 6 month and 1 year.
Diffstat (limited to 'libcaja-private/caja-query.c')
-rw-r--r--libcaja-private/caja-query.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libcaja-private/caja-query.c b/libcaja-private/caja-query.c
index 465e5a45..dd0384f0 100644
--- a/libcaja-private/caja-query.c
+++ b/libcaja-private/caja-query.c
@@ -36,7 +36,7 @@ struct CajaQueryDetails
char *location_uri;
GList *mime_types;
GList *tags;
- gint64 duration;
+ gint64 timestamp;
gint64 size;
};
@@ -77,7 +77,7 @@ static void
caja_query_init (CajaQuery *query)
{
query->details = g_new0 (CajaQueryDetails, 1);
- query->details->duration = 0;
+ query->details->timestamp = 0;
query->details->size = 0;
}
@@ -383,7 +383,7 @@ caja_query_to_xml (CajaQuery *query)
char *mimetype;
char *tag;
GList *l;
- gint64 duration;
+ gint64 timestamp;
gint64 size;
xml = g_string_new ("");
@@ -426,10 +426,10 @@ caja_query_to_xml (CajaQuery *query)
g_string_append (xml, " </tags>\n");
}
- if (query->details->duration != 0)
+ if (query->details->timestamp != 0)
{
g_string_append_printf(xml, " <duration>%ld</duration>",
- query->details->duration);
+ query->details->timestamp);
}
if (query->details->size != 0)
@@ -463,14 +463,14 @@ caja_query_save (CajaQuery *query, char *file)
return res;
}
-void caja_query_set_duration(CajaQuery *query, gint64 sec)
+void caja_query_set_timestamp(CajaQuery *query, gint64 sec)
{
- query->details->duration = sec;
+ query->details->timestamp = sec;
}
-gint64 caja_query_get_duration(CajaQuery *query)
+gint64 caja_query_get_timestamp(CajaQuery *query)
{
- return query->details->duration;
+ return query->details->timestamp;
}
void caja_query_set_size(CajaQuery *query, gint64 size)