Mercurial > pidgin
diff libpurple/eventloop.c @ 18006:f2d8658b3a86
merge of '62e9d17cd37551991c5040ce6ca48e6d7578dde3'
and '87c1ea9b3d60a343bac2a35e1fd8f7fee6bda6f2'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 19 May 2007 21:38:47 +0000 |
parents | 32c366eeeb99 |
children | f22986db6e70 |
line wrap: on
line diff
--- a/libpurple/eventloop.c Sat May 19 08:12:31 2007 +0000 +++ b/libpurple/eventloop.c Sat May 19 21:38:47 2007 +0000 @@ -35,6 +35,17 @@ return ops->timeout_add(interval, function, data); } +guint +gaim_timeout_add_seconds(guint interval, GSourceFunc function, gpointer data) +{ + GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); + + if (ops->timeout_add_seconds) + return ops->timeout_add_seconds(interval, function, data); + else + return ops->timeout_add(1000 * interval, function, data); +} + gboolean purple_timeout_remove(guint tag) {