Skip to content

replace deprecated (GLib>=2.61.2) GTimeVal by GDateTime

Since GLib 2.61.2, GTimeVal is deprecated. This change replaces it by GDateTime and fixes issue #7 (closed)

Note that GTimeVal was deprecated due to the year 2038 problem of 32bit Unix timestamps (time_t or tv_sec member of GTimeVal). In contrast, GDateTimes can represent identical longer total timespans on both 32bit and 64bit platforms and can always be converted to/from 64bit Unix timestamps, represented as gint64.

However, the Gnome Desktop Thumbnailer API still uses time_t which may still be 32bit on some platforms.

So, although this change now fixes this issue on 64bit platforms having GLib >= 2.62, compiling this code on 32bit platforms may still at least cause compiler warnings.

Fixes: #7 (closed)

Edited by Philip Withnall

Merge request reports