diff src/protocols/irc/irc.c @ 2131:acc11216ec5d

[gaim-migrate @ 2141] changing some gtk_timeout stuff to g_timeout (since it's likely that these will be used in core rather than gtk-ui). also fixed a small buddy pounce bug. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 06 Aug 2001 23:38:48 +0000
parents 56c4382f2909
children 18722ae5b882
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Mon Aug 06 21:47:17 2001 +0000
+++ b/src/protocols/irc/irc.c	Mon Aug 06 23:38:48 2001 +0000
@@ -109,7 +109,7 @@
 	return;
 }
 
-static void irc_request_buddy_update(struct gaim_connection *gc)
+static gboolean irc_request_buddy_update(struct gaim_connection *gc)
 {
 	struct irc_data *idata = (struct irc_data *)gc->proto_data;
 	GSList *grp = gc->groups;
@@ -126,7 +126,7 @@
 
 	/* First, let's check to see if we have anyone on our buddylist */
 	if (!grp) {
-		return;
+		return TRUE;
 	}
 
 	/* Send the first part of our request */
@@ -159,6 +159,7 @@
 		grp = g_slist_next(grp);
 	}
 	write(idata->fd, "\n", 1);
+	return TRUE;
 }
 
 
@@ -1826,7 +1827,7 @@
 	g_free(buf);
 
 	if (idata->timer)
-		gtk_timeout_remove(idata->timer);
+		g_source_remove(idata->timer);
 
 	while (chats) {
 		cc = (struct irc_channel *)chats->data;
@@ -1905,7 +1906,7 @@
 		do_import(NULL, gc);
 
 	/* we don't call this now because otherwise some IRC servers might not like us */
-	idata->timer = gtk_timeout_add(20000, (GtkFunction) irc_request_buddy_update, gc);
+	idata->timer = g_timeout_add(20000, irc_request_buddy_update, gc);
 }
 
 static void irc_login(struct aim_user *user)