/soc/2015/jgeboski/facebook: 38fdbcc84bcd: facebook: use PURPLE_...

James Geboski jgeboski at gmail.com
Sat Jul 4 13:26:51 EDT 2015


Changeset: 38fdbcc84bcd0cd0417cdab6b1f0ab5eae31a282
Author:	 James Geboski <jgeboski at gmail.com>
Date:	 2015-07-04 13:26 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/38fdbcc84bcd

Description:

facebook: use PURPLE_IS_BUDDY() over manual check

diffstat:

 libpurple/protocols/facebook/facebook.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff --git a/libpurple/protocols/facebook/facebook.c b/libpurple/protocols/facebook/facebook.c
--- a/libpurple/protocols/facebook/facebook.c
+++ b/libpurple/protocols/facebook/facebook.c
@@ -390,7 +390,7 @@ fb_blist_chat_init(PurpleBlistNode *node
 	GSList *select = NULL;
 	PurpleConnection *gc;
 
-	if (G_OBJECT_TYPE(node) != PURPLE_TYPE_BUDDY) {
+	if (!PURPLE_IS_BUDDY(node)) {
 		return;
 	}
 
@@ -530,7 +530,7 @@ fb_client_blist_node_menu(PurpleBlistNod
 	PurpleConnection *gc;
 	PurpleMenuAction *act;
 
-	if (G_OBJECT_TYPE(node) != PURPLE_TYPE_BUDDY) {
+	if (!PURPLE_IS_BUDDY(node)) {
 		return NULL;
 	}
 



More information about the Commits mailing list