diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-11-11 19:28:41 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-17 21:38:31 +0800 |
commit | 6011de2aa9fc4427acfa42ffe423fb166a165058 (patch) | |
tree | c839da7473795843b2cc63311ea003f15dae9456 /libempathy-gtk | |
parent | 600abe1e8b0f010484c7f1bdf185b4948660908e (diff) | |
download | gsoc2013-empathy-6011de2aa9fc4427acfa42ffe423fb166a165058.tar gsoc2013-empathy-6011de2aa9fc4427acfa42ffe423fb166a165058.tar.gz gsoc2013-empathy-6011de2aa9fc4427acfa42ffe423fb166a165058.tar.bz2 gsoc2013-empathy-6011de2aa9fc4427acfa42ffe423fb166a165058.tar.lz gsoc2013-empathy-6011de2aa9fc4427acfa42ffe423fb166a165058.tar.xz gsoc2013-empathy-6011de2aa9fc4427acfa42ffe423fb166a165058.tar.zst gsoc2013-empathy-6011de2aa9fc4427acfa42ffe423fb166a165058.zip |
Always display favorite contacts (#592595)
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index 7bc05b785..694248c7b 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -1681,6 +1681,7 @@ individual_view_is_visible_individual (EmpathyIndividualView *self, EmpathyLiveSearch *live = EMPATHY_LIVE_SEARCH (priv->search_widget); const gchar *str; GList *personas, *l; + gboolean is_favorite; /* We're only giving the visibility wrt filtering here, not things like * presence. */ @@ -1690,8 +1691,10 @@ individual_view_is_visible_individual (EmpathyIndividualView *self, return FALSE; } + is_favorite = folks_favourite_get_is_favourite ( + FOLKS_FAVOURITE (individual)); if (is_searching == FALSE) - return (priv->show_offline || is_online); + return (priv->show_offline || is_online || is_favorite); /* check alias name */ str = folks_aliasable_get_alias (FOLKS_ALIASABLE (individual)); |