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:39:07 +0800
commit46d6989afcf9964e80d1e6a7b5e0f623da1b2f77 (patch)
tree6c3a9f547cc8c448208a07cb96a2070c35a3f8fc
parentf8f7ac21055e4f5f6ebe90c0e9c0605739cefe73 (diff)
downloadgsoc2013-empathy-46d6989afcf9964e80d1e6a7b5e0f623da1b2f77.tar
gsoc2013-empathy-46d6989afcf9964e80d1e6a7b5e0f623da1b2f77.tar.gz
gsoc2013-empathy-46d6989afcf9964e80d1e6a7b5e0f623da1b2f77.tar.bz2
gsoc2013-empathy-46d6989afcf9964e80d1e6a7b5e0f623da1b2f77.tar.lz
gsoc2013-empathy-46d6989afcf9964e80d1e6a7b5e0f623da1b2f77.tar.xz
gsoc2013-empathy-46d6989afcf9964e80d1e6a7b5e0f623da1b2f77.tar.zst
gsoc2013-empathy-46d6989afcf9964e80d1e6a7b5e0f623da1b2f77.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 d952b8269..0f150cab3 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -1614,6 +1614,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. */
@@ -1623,8 +1624,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));