summaryrefslogtreecommitdiff
path: root/xfconf
diff options
context:
space:
mode:
authorYongha Hwang <mshrimp@sogang.ac.kr>2022-02-28 22:22:54 +0000
committerAlexander Schwinn <alexxcons@xfce.org>2022-02-28 22:22:54 +0000
commit90e30f2c6d881ad54251280775f00505f6960f2c (patch)
tree46c232febc92256996ae0aa9f1dea069e65e53d4 /xfconf
parenta7a172f376f695ae50d118a17ea6a63941b77d91 (diff)
downloadxfconf-90e30f2c6d881ad54251280775f00505f6960f2c.tar.gz
Replace GTimeVal with gint64 epoch time
Diffstat (limited to 'xfconf')
-rw-r--r--xfconf/xfconf-cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfconf/xfconf-cache.c b/xfconf/xfconf-cache.c
index 1a0d536..74f8dd0 100644
--- a/xfconf/xfconf-cache.c
+++ b/xfconf/xfconf-cache.c
@@ -62,7 +62,7 @@
typedef struct
{
#if 0
- GTimeVal last_used;
+ gint64 last_used;
#endif
GValue *value;
} XfconfCacheItem;
@@ -77,7 +77,7 @@ xfconf_cache_item_new(const GValue *value,
item = g_slice_new0(XfconfCacheItem);
#if 0
- g_get_current_time(&item->last_used);
+ item->last_used = g_get_monotonic_time ();
#endif
if(G_LIKELY(steal)) {
@@ -106,7 +106,7 @@ xfconf_cache_item_update(XfconfCacheItem *item,
return FALSE;
#if 0
- g_get_current_time(&item->last_used);
+ item->last_used = g_get_monotonic_time ();
#endif
if(value) {