changeset 18009:9ffa9af32854

Wire in g_timeout_add_seconds for Finch and nullclient as well.
author Richard Laager <rlaager@wiktel.com>
date Sun, 20 May 2007 13:58:37 +0000
parents f22986db6e70
children 1fcd21ea6780
files finch/finch.c libpurple/example/nullclient.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/finch.c	Sun May 20 13:56:28 2007 +0000
+++ b/finch/finch.c	Sun May 20 13:58:37 2007 +0000
@@ -156,11 +156,15 @@
 	gnt_input_add,
 	g_source_remove,
 	NULL, /* input_get_error */
+#if GLIB_VERSION_CHECK(2,14,0)
+	g_timeout_add_seconds,
+#else
+	NULL,
+#endif
 
 	/* padding */
 	NULL,
 	NULL,
-	NULL,
 	NULL
 };
 
--- a/libpurple/example/nullclient.c	Sun May 20 13:56:28 2007 +0000
+++ b/libpurple/example/nullclient.c	Sun May 20 13:58:37 2007 +0000
@@ -108,11 +108,15 @@
 	glib_input_add,
 	g_source_remove,
 	NULL,
+#if GLIB_VERSION_CHECK(2,14,0)
+	g_timeout_add_seconds,
+#else
+	NULL,
+#endif
 
 	/* padding */
 	NULL,
 	NULL,
-	NULL,
 	NULL
 };
 /*** End of the eventloop functions. ***/