diff src/blist.h @ 12519:e63a80be5227

[gaim-migrate @ 14831] better (?) tooltips committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 17 Dec 2005 05:13:45 +0000
parents fc464a0abccc
children 248b8b39c671
line wrap: on
line diff
--- a/src/blist.h	Sat Dec 17 05:04:08 2005 +0000
+++ b/src/blist.h	Sat Dec 17 05:13:45 2005 +0000
@@ -71,6 +71,9 @@
 #define GAIM_BLIST_NODE_HAS_FLAG(b, f) ((b)->flags & (f))
 #define GAIM_BLIST_NODE_SHOULD_SAVE(b) (! GAIM_BLIST_NODE_HAS_FLAG(b, GAIM_BLIST_NODE_FLAG_NO_SAVE))
 
+#define GAIM_BLIST_NODE_NAME(n) ((n)->type == GAIM_BLIST_CHAT_NODE  ? gaim_chat_get_name((GaimChat*)n) :        \
+				     (n)->type == GAIM_BLIST_BUDDY_NODE ? gaim_buddy_get_name((GaimBuddy*)n) : NULL)
+
 #include "account.h"
 #include "buddyicon.h"
 #include "status.h"