aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/gossip-contact.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-01 21:57:21 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-01 21:57:21 +0800
commitc495067284d11585b493d9f28667857771498b2a (patch)
tree6b217ea6b93f1c05c5079ec9b340db9e15d44e2c /libempathy/gossip-contact.c
parent8aaf6865026ead0f21a233a2897a89a7de332f5d (diff)
downloadgsoc2013-empathy-c495067284d11585b493d9f28667857771498b2a.tar
gsoc2013-empathy-c495067284d11585b493d9f28667857771498b2a.tar.gz
gsoc2013-empathy-c495067284d11585b493d9f28667857771498b2a.tar.bz2
gsoc2013-empathy-c495067284d11585b493d9f28667857771498b2a.tar.lz
gsoc2013-empathy-c495067284d11585b493d9f28667857771498b2a.tar.xz
gsoc2013-empathy-c495067284d11585b493d9f28667857771498b2a.tar.zst
gsoc2013-empathy-c495067284d11585b493d9f28667857771498b2a.zip
[darcs-to-svn @ Syncing new contact list stuff from gossip]
svn path=/trunk/; revision=15
Diffstat (limited to 'libempathy/gossip-contact.c')
-rw-r--r--libempathy/gossip-contact.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libempathy/gossip-contact.c b/libempathy/gossip-contact.c
index f19825437..fc0569021 100644
--- a/libempathy/gossip-contact.c
+++ b/libempathy/gossip-contact.c
@@ -610,6 +610,24 @@ gossip_contact_is_online (GossipContact *contact)
return (priv->presence != NULL);
}
+gboolean
+gossip_contact_is_in_group (GossipContact *contact,
+ const gchar *group)
+{
+ GossipContactPriv *priv;
+
+ g_return_val_if_fail (GOSSIP_IS_CONTACT (contact), FALSE);
+ g_return_val_if_fail (!G_STR_EMPTY (group), FALSE);
+
+ priv = GET_PRIV (contact);
+
+ if (g_list_find_custom (priv->groups, group, (GCompareFunc) strcmp)) {
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
const gchar *
gossip_contact_get_status (GossipContact *contact)
{