diff options
author | Mike Ruprecht <cmaiku@gmail.com> | 2017-06-15 13:33:02 -0500 |
---|---|---|
committer | Mike Ruprecht <cmaiku@gmail.com> | 2017-06-15 13:33:02 -0500 |
commit | 1e506c87754f947168a9e02c16de27151f72e613 (patch) | |
tree | 72592586883c22a80e10cbc5e433730c4c7c9650 /libpurple/server.c | |
parent | 8b4012ee32490fa203bc583c1138b249a1cff2d6 (diff) | |
download | pidgin-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/server.c')
-rw-r--r-- | libpurple/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/server.c b/libpurple/server.c index e997447f43..13be8259fa 100644 --- a/libpurple/server.c +++ b/libpurple/server.c @@ -90,7 +90,7 @@ get_last_auto_response(PurpleConnection *gc, const char *name) /* because we're modifying or creating a lar, schedule the * function to expire them as the pref dictates */ - purple_timeout_add_seconds((SECS_BEFORE_RESENDING_AUTORESPONSE + 1), expire_last_auto_responses, NULL); + g_timeout_add_seconds((SECS_BEFORE_RESENDING_AUTORESPONSE + 1), expire_last_auto_responses, NULL); tmp = last_auto_responses; |