aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact-manager.c
diff options
context:
space:
mode:
authorDavyd Madeley <davyd@madeley.id.au>2009-04-24 14:36:23 +0800
committerDavyd Madeley <davyd@madeley.id.au>2009-07-15 18:12:15 +0800
commit98d43b78d70e1a2ff6a0b931ad1b8e11790daff0 (patch)
tree204689f35d09bba1a88eddd9020c9a6fc424e91d /libempathy/empathy-contact-manager.c
parent0c0c427ea240b0615cc08658fc318516d4259d3e (diff)
downloadgsoc2013-empathy-98d43b78d70e1a2ff6a0b931ad1b8e11790daff0.tar
gsoc2013-empathy-98d43b78d70e1a2ff6a0b931ad1b8e11790daff0.tar.gz
gsoc2013-empathy-98d43b78d70e1a2ff6a0b931ad1b8e11790daff0.tar.bz2
gsoc2013-empathy-98d43b78d70e1a2ff6a0b931ad1b8e11790daff0.tar.lz
gsoc2013-empathy-98d43b78d70e1a2ff6a0b931ad1b8e11790daff0.tar.xz
gsoc2013-empathy-98d43b78d70e1a2ff6a0b931ad1b8e11790daff0.tar.zst
gsoc2013-empathy-98d43b78d70e1a2ff6a0b931ad1b8e11790daff0.zip
Convert empathy_contact_manager_can_add() to empathy_contact_manager_get_flags_for_connection()
Diffstat (limited to 'libempathy/empathy-contact-manager.c')
-rw-r--r--libempathy/empathy-contact-manager.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index 49155c8c5..5ce463c4c 100644
--- a/libempathy/empathy-contact-manager.c
+++ b/libempathy/empathy-contact-manager.c
@@ -527,9 +527,10 @@ contact_manager_iface_init (EmpathyContactListIface *iface)
iface->remove_group = contact_manager_remove_group;
}
-gboolean
-empathy_contact_manager_can_add (EmpathyContactManager *manager,
- TpConnection *connection)
+EmpathyContactListFlags
+empathy_contact_manager_get_flags_for_connection (
+ EmpathyContactManager *manager,
+ TpConnection *connection)
{
EmpathyContactManagerPriv *priv = GET_PRIV (manager);
EmpathyContactList *list;
@@ -544,6 +545,6 @@ empathy_contact_manager_can_add (EmpathyContactManager *manager,
}
flags = empathy_contact_list_get_flags (list);
- return (flags & EMPATHY_CONTACT_LIST_CAN_ADD);
+ return flags;
}