src: Stop using g_get_current_time()
It isn't 2k38 safe and has therefore been deprecated. Replace it with GDateTime or g_get_real_time() as appropriate. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/657
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
5d8ea4f9a3
commit
9b7f228f8e
@ -123,9 +123,7 @@ static void on_enable_monitoring_key_changed (GSettings *settings,
|
||||
static long
|
||||
get_time (void)
|
||||
{
|
||||
GTimeVal tv;
|
||||
g_get_current_time (&tv);
|
||||
return tv.tv_sec;
|
||||
return g_get_real_time () / G_TIME_SPAN_SECOND;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user