/soc/2013/ankitkv/gobjectification: 0caa177ac066: Refactored pre...
Ankit Vani
a at nevitus.org
Mon Jul 29 06:39:05 EDT 2013
Changeset: 0caa177ac066dee3607fbd7f1de789d06030866f
Author: Ankit Vani <a at nevitus.org>
Date: 2013-07-29 16:08 +0530
Branch: soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/0caa177ac066
Description:
Refactored presence to use the initial GObject plugin API
diffstat:
libpurple/presence.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (25 lines):
diff --git a/libpurple/presence.c b/libpurple/presence.c
--- a/libpurple/presence.c
+++ b/libpurple/presence.c
@@ -553,7 +553,6 @@ purple_account_presence_update_idle(Purp
{
PurpleAccount *account;
PurpleConnection *gc = NULL;
- PurplePlugin *prpl = NULL;
PurplePluginProtocolInfo *prpl_info = NULL;
gboolean idle = purple_presence_is_idle(presence);
time_t idle_time = purple_presence_get_idle_time(presence);
@@ -585,11 +584,8 @@ purple_account_presence_update_idle(Purp
gc = purple_account_get_connection(account);
- if(gc)
- prpl = purple_connection_get_protocol_info(gc);
-
- if(PURPLE_CONNECTION_IS_CONNECTED(gc) && prpl != NULL)
- prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl);
+ if(PURPLE_CONNECTION_IS_CONNECTED(gc))
+ prpl_info = purple_connection_get_protocol_info(gc);
if (prpl_info && prpl_info->set_idle)
prpl_info->set_idle(gc, (idle ? (current_time - idle_time) : 0));
More information about the Commits
mailing list