diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-01-30 00:16:29 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-02-18 08:04:45 +0800 |
commit | 7365b5426c1e281f49bd67506c09ce76ffb67e2c (patch) | |
tree | fc7ab108424e93aad9463308ed79b3caf5482427 /libempathy-gtk/empathy-individual-menu.c | |
parent | 6103b13b462a07a8b508ee2223ef1e5acfc8dd47 (diff) | |
download | gsoc2013-empathy-7365b5426c1e281f49bd67506c09ce76ffb67e2c.tar gsoc2013-empathy-7365b5426c1e281f49bd67506c09ce76ffb67e2c.tar.gz gsoc2013-empathy-7365b5426c1e281f49bd67506c09ce76ffb67e2c.tar.bz2 gsoc2013-empathy-7365b5426c1e281f49bd67506c09ce76ffb67e2c.tar.lz gsoc2013-empathy-7365b5426c1e281f49bd67506c09ce76ffb67e2c.tar.xz gsoc2013-empathy-7365b5426c1e281f49bd67506c09ce76ffb67e2c.tar.zst gsoc2013-empathy-7365b5426c1e281f49bd67506c09ce76ffb67e2c.zip |
Bug 637151 — Hide the user Individual from the contact list
Generalise the mechanism used to determine whether a persona is to be
displayed by Empathy to also take into account whether the persona is the
user and, if so, whether they're in the contact list.
This bumps the libfolks dependency to 0.3.5.
Closes: bgo#637151
Diffstat (limited to 'libempathy-gtk/empathy-individual-menu.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c index 757bbe54a..7cab792a2 100644 --- a/libempathy-gtk/empathy-individual-menu.c +++ b/libempathy-gtk/empathy-individual-menu.c @@ -87,7 +87,7 @@ individual_menu_add_personas (GtkMenuShell *menu, * functionality */ for (l = personas; l != NULL; l = l->next) { - if (!TPF_IS_PERSONA (l->data)) + if (!empathy_folks_persona_is_interesting (FOLKS_PERSONA (l->data))) continue; persona_count++; @@ -116,7 +116,7 @@ individual_menu_add_personas (GtkMenuShell *menu, const gchar *account; GtkWidget *action; - if (!TPF_IS_PERSONA (persona)) + if (!empathy_folks_persona_is_interesting (FOLKS_PERSONA (l->data))) continue; tp_contact = tpf_persona_get_contact (persona); @@ -940,7 +940,7 @@ room_sub_menu_activate_cb (GtkWidget *item, TpContact *tp_contact; GList *rooms; - if (!TPF_IS_PERSONA (persona)) + if (!empathy_folks_persona_is_interesting (FOLKS_PERSONA (l->data))) continue; tp_contact = tpf_persona_get_contact (persona); @@ -1040,7 +1040,7 @@ empathy_individual_invite_menu_item_new (FolksIndividual *individual, TpContact *tp_contact; EmpathyContact *contact_cur; - if (!TPF_IS_PERSONA (persona)) + if (!empathy_folks_persona_is_interesting (FOLKS_PERSONA (l->data))) continue; tp_contact = tpf_persona_get_contact (persona); |