aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/ChangeLog3
-rw-r--r--e-util/e-profile-event.c5
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;
}