diff options
author | Tor Lillqvist <tml@novell.com> | 2005-09-28 18:20:03 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-09-28 18:20:03 +0800 |
commit | 14d14477fd707760452a90a3d076ce9b2c1fa9a4 (patch) | |
tree | 394af65aabca5489e1a763c13db5a0b620dab1df /e-util/e-profile-event.c | |
parent | b105af8066f642a40230adc5803fd458c0737c39 (diff) | |
download | gsoc2013-evolution-14d14477fd707760452a90a3d076ce9b2c1fa9a4.tar.gz gsoc2013-evolution-14d14477fd707760452a90a3d076ce9b2c1fa9a4.tar.zst gsoc2013-evolution-14d14477fd707760452a90a3d076ce9b2c1fa9a4.zip |
Use g_get_current_time() instead of gettimeofday() for portability.
2005-09-28 Tor Lillqvist <tml@novell.com>
* e-profile-event.c (e_profile_event_target_new): Use
g_get_current_time() instead of gettimeofday() for portability.
svn path=/trunk/; revision=30396
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; } |