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

James Geboski <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 38fdbcc84bcd0cd0417cdab6b1f0ab5eae31a282
Author:	 James Geboski <[email protected]>
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;
 	}
 

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.