Mercurial > pidgin.yaz
changeset 17703:0f4a562b38d1
libpurple should not use glib eventloop stuff directly, since we have our
own eventloop abstraction. This leaves just one hack in blist.c.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 04 Jun 2007 04:50:02 +0000 |
parents | 9187a19d72a7 |
children | 246dc6e0014f a7a8e4245b33 |
files | libpurple/plugins/joinpart.c libpurple/plugins/perl/perl-handlers.c libpurple/protocols/silc/silc.c |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/plugins/joinpart.c Mon Jun 04 04:34:28 2007 +0000 +++ b/libpurple/plugins/joinpart.c Mon Jun 04 04:50:02 2007 +0000 @@ -210,7 +210,7 @@ * we don't have to worry one will be called after this. */ g_hash_table_destroy((GHashTable *)data[0]); - g_source_remove(GPOINTER_TO_UINT(data[1])); + purple_timeout_remove(GPOINTER_TO_UINT(data[1])); g_free(data); return TRUE;
--- a/libpurple/plugins/perl/perl-handlers.c Mon Jun 04 04:34:28 2007 +0000 +++ b/libpurple/plugins/perl/perl-handlers.c Mon Jun 04 04:50:02 2007 +0000 @@ -184,7 +184,7 @@ timeout_handlers = g_list_remove(timeout_handlers, handler); if (handler->iotag > 0) - g_source_remove(handler->iotag); + purple_timeout_remove(handler->iotag); if (handler->callback != NULL) SvREFCNT_dec(handler->callback); @@ -405,7 +405,7 @@ timeout_handlers = g_list_append(timeout_handlers, handler); - handler->iotag = g_timeout_add(seconds * 1000, perl_timeout_cb, handler); + handler->iotag = purple_timeout_add(seconds * 1000, perl_timeout_cb, handler); } void
--- a/libpurple/protocols/silc/silc.c Mon Jun 04 04:34:28 2007 +0000 +++ b/libpurple/protocols/silc/silc.c Mon Jun 04 04:50:02 2007 +0000 @@ -361,7 +361,7 @@ } /* Schedule SILC using Glib's event loop */ - sg->scheduler = g_timeout_add(300, (GSourceFunc)silcpurple_scheduler, sg); + sg->scheduler = purple_timeout_add(300, (GSourceFunc)silcpurple_scheduler, sg); } static int @@ -392,8 +392,8 @@ if (sg->conn) silc_client_close_connection(sg->client, sg->conn); - g_source_remove(sg->scheduler); - g_timeout_add(1, (GSourceFunc)silcpurple_close_final, sg); + purple_timeout_remove(sg->scheduler); + purple_timeout_add(1, (GSourceFunc)silcpurple_close_final, sg); }