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 | |
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')
-rw-r--r-- | e-util/ChangeLog | 3 | ||||
-rw-r--r-- | e-util/e-profile-event.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 059f7b1f9b..3aa33477a0 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -5,6 +5,9 @@ strings, just casefolding ASCII is enough. Also better for portability. + * e-profile-event.c (e_profile_event_target_new): Use + g_get_current_time() instead of gettimeofday() for portability. + 2005-08-23 Not Zed <NotZed@Ximian.com> * e-util.c (e_mkdir_hier): cast warning, good ol win32 patches. 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; } |