diff options
Diffstat (limited to 'e-util/e-profile-event.c')
-rw-r--r-- | e-util/e-profile-event.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/e-util/e-profile-event.c b/e-util/e-profile-event.c index 5b4495a31d..3cc2475800 100644 --- a/e-util/e-profile-event.c +++ b/e-util/e-profile-event.c @@ -112,11 +112,14 @@ EProfileEventTarget * e_profile_event_target_new(EProfileEvent *eme, const char *id, const char *uid, guint32 flags) { EProfileEventTarget *t = e_event_target_new(&eme->popup, E_PROFILE_EVENT_TARGET, sizeof(*t)); + GTimeVal tv; t->id = g_strdup(id); t->uid = g_strdup(uid); t->target.mask = ~flags; - gettimeofday(&t->tv, NULL); + g_get_current_time (&tv); + t->tv.tv_sec = tv.tv_sec; + t->tv.tv_usec = tv.tv_usec; return t; } |