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 07:47:31 +0800 |
commit | 753a1862257d4c14fb2475a73ec08aeabdb7d907 (patch) | |
tree | bcf78312b1b7954818b929dfac44786e59b247a2 /libempathy-gtk/empathy-individual-menu.c | |
parent | d008f215bc41f4e69ff01879047ec946a4370148 (diff) | |
download | gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.gz gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.bz2 gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.lz gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.xz gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.zst gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.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 1dc463330..8b9f98486 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); @@ -937,7 +937,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); @@ -1037,7 +1037,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); |