diff finch/plugins/gntgf.c @ 25592:bd18bb4915ba

*** Plucked rev 143e16e9 (sadrul@pidgin.im): Save the world. Patch from Arunan Bala to save the world. But instead of saving the cheerleader, he's using g_timeout_add_seconds where possible in place of g_timeout_add. Closes #8831. *** Plucked rev 4a4ac072 (sadrul@pidgin.im): Update the copyright name, as requested. *** Plucked rev 91e51efe (sadrul@pidgin.im): Update the finch manual some. Refs #8577.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 30 Apr 2009 14:02:33 +0000
parents ea62e934c80b
children a8cc50c2279f
line wrap: on
line diff
--- a/finch/plugins/gntgf.c	Thu Apr 30 05:19:41 2009 +0000
+++ b/finch/plugins/gntgf.c	Thu Apr 30 14:02:33 2009 +0000
@@ -47,6 +47,7 @@
 #include <blist.h>
 #include <conversation.h>
 #include <debug.h>
+#include <eventloop.h>
 #include <util.h>
 
 #include <gnt.h>
@@ -75,7 +76,7 @@
 {
 	toasters = g_list_remove(toasters, toast);
 	gnt_widget_destroy(toast->window);
-	g_source_remove(toast->timer);
+	purple_timeout_remove(toast->timer);
 	g_free(toast);
 }
 
@@ -220,7 +221,7 @@
 	}
 	gnt_widget_draw(window);
 
-	toast->timer = g_timeout_add(4000, (GSourceFunc)remove_toaster, toast);
+	toast->timer = purple_timeout_add_seconds(4, (GSourceFunc)remove_toaster, toast);
 	toasters = g_list_prepend(toasters, toast);
 }