summaryrefslogtreecommitdiff
path: root/libpurple/buddylist.c
diff options
context:
space:
mode:
authorMike Ruprecht <cmaiku@gmail.com>2017-06-15 13:33:02 -0500
committerMike Ruprecht <cmaiku@gmail.com>2017-06-15 13:33:02 -0500
commit1e506c87754f947168a9e02c16de27151f72e613 (patch)
tree72592586883c22a80e10cbc5e433730c4c7c9650 /libpurple/buddylist.c
parent8b4012ee32490fa203bc583c1138b249a1cff2d6 (diff)
downloadpidgin-1e506c87754f947168a9e02c16de27151f72e613.tar.gz
Remove purple_timeout_* function usage
Now that the purple_timeout_* functions internally just use their GLib equivalents, we can just replace them with the GLib equivalents. This patch replaces purple_timeout_* functions with g_timeout_add{_seconds}() and g_source_remove() functions. There are probably places in this which could use g_timeout_add_full() or g_idle_add{_full}(), but this was a straight replacement to keep the functionality identical for now. Further patches can update to use these instead if desired.
Diffstat (limited to 'libpurple/buddylist.c')
-rw-r--r--libpurple/buddylist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpurple/buddylist.c b/libpurple/buddylist.c
index c3634a0ec2..c8c269ba79 100644
--- a/libpurple/buddylist.c
+++ b/libpurple/buddylist.c
@@ -433,7 +433,7 @@ static void
_purple_blist_schedule_save()
{
if (save_timer == 0)
- save_timer = purple_timeout_add_seconds(5, save_cb, NULL);
+ save_timer = g_timeout_add_seconds(5, save_cb, NULL);
}
static void
@@ -2045,7 +2045,7 @@ purple_blist_uninit(void)
return;
if (save_timer != 0) {
- purple_timeout_remove(save_timer);
+ g_source_remove(save_timer);
save_timer = 0;
purple_blist_sync();
}