Mercurial > pidgin.yaz
diff libpurple/conversation.c @ 26612:b87843de7c6a
A patch from Arunan Balasubramaniam to use timeouts in seconds instead of
milliseconds in libpurple. This enables grouping of timers for greater
power efficiency.
Fixes #8875.
committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author | foss@abala.me |
---|---|
date | Fri, 10 Apr 2009 06:18:08 +0000 |
parents | a6e3cb32cdd2 |
children | 15ae2dea92b3 |
line wrap: on
line diff
--- a/libpurple/conversation.c Fri Apr 10 05:57:23 2009 +0000 +++ b/libpurple/conversation.c Fri Apr 10 06:18:08 2009 +0000 @@ -33,7 +33,7 @@ #include "signals.h" #include "util.h" -#define SEND_TYPED_TIMEOUT 5000 +#define SEND_TYPED_TIMEOUT_SECONDS 5 static GList *conversations = NULL; static GList *ims = NULL; @@ -1122,8 +1122,9 @@ { g_return_if_fail(im != NULL); - im->send_typed_timeout = purple_timeout_add(SEND_TYPED_TIMEOUT, send_typed_cb, - purple_conv_im_get_conversation(im)); + im->send_typed_timeout = purple_timeout_add_seconds(SEND_TYPED_TIMEOUT_SECONDS, + send_typed_cb, + purple_conv_im_get_conversation(im)); } void