diff src/gtkblist.c @ 11018:04f280376f06

[gaim-migrate @ 12888] sf patch #1223909, from Richard Laager New Accessor Method: gaim_gtk_blist_node_is_contact_expanded committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 22 Jun 2005 22:41:59 +0000
parents 6417b2f5de4e
children 9a99b0815459
line wrap: on
line diff
--- a/src/gtkblist.c	Wed Jun 22 21:36:23 2005 +0000
+++ b/src/gtkblist.c	Wed Jun 22 22:41:59 2005 +0000
@@ -3342,6 +3342,16 @@
 	node->ui_data = g_new0(struct _gaim_gtk_blist_node, 1);
 }
 
+gboolean gaim_gtk_blist_node_is_contact_expanded(GaimBlistNode *node)
+{
+	if GAIM_BLIST_NODE_IS_BUDDY(node)
+		node = node->parent;
+
+	g_return_val_if_fail(GAIM_BLIST_NODE_IS_CONTACT(node), FALSE);
+
+	return ((struct _gaim_gtk_blist_node *)node->ui_data)->contact_expanded;
+}
+
 void gaim_gtk_blist_update_columns()
 {
 	if(!gtkblist)