summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-icon-info.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-03-03 13:51:41 +0100
committerStefano Karapetsas <[email protected]>2013-03-03 13:51:41 +0100
commitc1d965ceb53bc91e47b4b944a0c7864ef7cded21 (patch)
tree5aa15249636ea80b6fa313dd8d62bf3d4875fbd7 /libcaja-private/caja-icon-info.c
parent25a08e37283fc4c0b4689a3da791a7ad5e23a690 (diff)
downloadcaja-c1d965ceb53bc91e47b4b944a0c7864ef7cded21.tar.bz2
caja-c1d965ceb53bc91e47b4b944a0c7864ef7cded21.tar.xz
Replace undocumented deprecated g_thread_gettime
Bump minimum glib version accordingly
Diffstat (limited to 'libcaja-private/caja-icon-info.c')
-rw-r--r--libcaja-private/caja-icon-info.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcaja-private/caja-icon-info.c b/libcaja-private/caja-icon-info.c
index 5d783877..a32cf991 100644
--- a/libcaja-private/caja-icon-info.c
+++ b/libcaja-private/caja-icon-info.c
@@ -57,7 +57,7 @@ G_DEFINE_TYPE (CajaIconInfo,
static void
caja_icon_info_init (CajaIconInfo *icon)
{
- icon->last_use_time = g_thread_gettime ();
+ icon->last_use_time = g_get_monotonic_time () * 1000;
icon->sole_owner = TRUE;
}
@@ -80,7 +80,7 @@ pixbuf_toggle_notify (gpointer info,
g_object_remove_toggle_ref (object,
pixbuf_toggle_notify,
info);
- icon->last_use_time = g_thread_gettime ();
+ icon->last_use_time = g_get_monotonic_time () * 1000;
schedule_reap_cache ();
}
}
@@ -228,7 +228,7 @@ reap_cache (gpointer data)
reapable_icons_left = TRUE;
- time_now = g_thread_gettime ();
+ time_now = g_get_monotonic_time () * 1000;
if (loadable_icon_cache)
{