aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-11-11 19:28:41 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-17 21:38:31 +0800
commit6011de2aa9fc4427acfa42ffe423fb166a165058 (patch)
treec839da7473795843b2cc63311ea003f15dae9456
parent600abe1e8b0f010484c7f1bdf185b4948660908e (diff)
downloadgsoc2013-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)
-rw-r--r--libempathy-gtk/empathy-individual-view.c5
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));