diff options
author | Travis Reitter <travis.reitter@collabora.co.uk> | 2010-10-13 13:45:53 +0800 |
---|---|---|
committer | Travis Reitter <travis.reitter@collabora.co.uk> | 2010-10-16 05:14:45 +0800 |
commit | a4cd05f5f8aeb4067652e4806f0e125b221d8ad1 (patch) | |
tree | 777a41c69dff847e47ad3d29797fa9c50b1825e9 /libempathy-gtk/empathy-individual-menu.c | |
parent | 4f39984ad575e8ee643e3cf52ad519386c23009e (diff) | |
download | gsoc2013-empathy-a4cd05f5f8aeb4067652e4806f0e125b221d8ad1.tar gsoc2013-empathy-a4cd05f5f8aeb4067652e4806f0e125b221d8ad1.tar.gz gsoc2013-empathy-a4cd05f5f8aeb4067652e4806f0e125b221d8ad1.tar.bz2 gsoc2013-empathy-a4cd05f5f8aeb4067652e4806f0e125b221d8ad1.tar.lz gsoc2013-empathy-a4cd05f5f8aeb4067652e4806f0e125b221d8ad1.tar.xz gsoc2013-empathy-a4cd05f5f8aeb4067652e4806f0e125b221d8ad1.tar.zst gsoc2013-empathy-a4cd05f5f8aeb4067652e4806f0e125b221d8ad1.zip |
Use Folks to check if a TpConnection can alias and group personas.
Helps bgo#625969.
Diffstat (limited to 'libempathy-gtk/empathy-individual-menu.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-menu.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c index b1237cf8b..e3159b401 100644 --- a/libempathy-gtk/empathy-individual-menu.c +++ b/libempathy-gtk/empathy-individual-menu.c @@ -822,15 +822,12 @@ empathy_individual_edit_menu_item_new (FolksIndividual *individual) if (empathy_individual_manager_initialized ()) { TpConnection *connection; - EmpathyIndividualManagerFlags flags; manager = empathy_individual_manager_dup_singleton (); connection = empathy_contact_get_connection (contact); - flags = empathy_individual_manager_get_flags_for_connection ( - manager, connection); - enable = (flags & EMPATHY_INDIVIDUAL_MANAGER_CAN_ALIAS || - flags & EMPATHY_INDIVIDUAL_MANAGER_CAN_GROUP); + enable = (empathy_connection_can_alias_personas (connection) && + empathy_connection_can_group_personas (connection)); g_object_unref (manager); } |