libpurple/eventloop.c

changeset 18068
b6554e3c8224
parent 18067
ce02548a6b6a
parent 15884
4de1981757fc
child 18070
79c7fe0d8e4b
--- 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)
 {

mercurial