From 6e72a236dcb592a942881e118d6a71888ea1581b Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Mon, 4 May 2009 10:10:55 +0530 Subject: ** BUGFIX: 573830 - g_timeout_add_seconds should be preferred to g_timeout_add According to https://wiki.ubuntu.com/SavingTheWorld (and of course according to the gtk docs) using g_timeout_add_seconds is preferred over g_timeout_add if a timeout in seconds is desired. --- mail/mail-send-recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/mail-send-recv.c') diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index d957a7d216..0b81fca5ed 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -1027,7 +1027,7 @@ auto_account_commit(struct _auto_data *info) } info->period = period; if (check && info->timeout_id == 0) - info->timeout_id = g_timeout_add(info->period*1000, auto_timeout, info); + info->timeout_id = g_timeout_add_seconds(info->period, auto_timeout, info); } static void -- cgit v1.2.3