/soc/2013/ankitkv/gobjectification: e341dbc04539: Refactored plu...

Ankit Vani a at nevitus.org
Fri Jul 19 18:54:38 EDT 2013


Changeset: e341dbc0453986e09cbcaecf6bf0698bee3ab9e8
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-07-20 04:24 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/e341dbc04539

Description:

Refactored plugins, account, blistnodetypes to use the GObject presence API

diffstat:

 libpurple/account.c            |  2 +-
 libpurple/blistnodetypes.c     |  2 +-
 libpurple/blistnodetypes.h     |  1 +
 libpurple/plugins/offlinemsg.c |  1 -
 4 files changed, 3 insertions(+), 3 deletions(-)

diffs (46 lines):

diff --git a/libpurple/account.c b/libpurple/account.c
--- a/libpurple/account.c
+++ b/libpurple/account.c
@@ -2932,7 +2932,7 @@ purple_account_constructed(GObject *obje
 		purple_account_set_status_types(account,
 				prpl_info->status_types(account));
 
-	priv->presence = purple_account_presence_new(account);
+	priv->presence = PURPLE_PRESENCE(purple_account_presence_new(account));
 
 	status_type = purple_account_get_status_type_with_primitive(account,
 			PURPLE_STATUS_AVAILABLE);
diff --git a/libpurple/blistnodetypes.c b/libpurple/blistnodetypes.c
--- a/libpurple/blistnodetypes.c
+++ b/libpurple/blistnodetypes.c
@@ -615,7 +615,7 @@ purple_buddy_constructed(GObject *object
 
 	G_OBJECT_CLASS(blistnode_parent_class)->constructed(object);
 
-	priv->presence = purple_buddy_presence_new(buddy);
+	priv->presence = PURPLE_PRESENCE(purple_buddy_presence_new(buddy));
 	purple_presence_set_status_active(priv->presence, "offline", TRUE);
 
 	if (ops && ops->new_node)
diff --git a/libpurple/blistnodetypes.h b/libpurple/blistnodetypes.h
--- a/libpurple/blistnodetypes.h
+++ b/libpurple/blistnodetypes.h
@@ -78,6 +78,7 @@ typedef struct _PurpleChatClass PurpleCh
 #include "account.h"
 #include "buddyicon.h"
 #include "media.h"
+#include "presences.h"
 #include "status.h"
 
 #define PURPLE_BUDDY_IS_ONLINE(b) \
diff --git a/libpurple/plugins/offlinemsg.c b/libpurple/plugins/offlinemsg.c
--- a/libpurple/plugins/offlinemsg.c
+++ b/libpurple/plugins/offlinemsg.c
@@ -34,7 +34,6 @@
 #include <core.h>
 #include <debug.h>
 #include <pounce.h>
-#include <presences.h>
 #include <request.h>
 
 #define	PREF_PREFIX		"/plugins/core/" PLUGIN_ID



More information about the Commits mailing list