aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-view.c
diff options
context:
space:
mode:
authorFelix Kaser <f.kaser@gmx.net>2010-08-05 18:55:31 +0800
committerFelix Kaser <f.kaser@gmx.net>2010-08-05 20:42:11 +0800
commit7cd053aff86931fdf85c8016701956d1fb43e646 (patch)
tree66363e38b42a66e3df86d480925059094c8ae1cb /libempathy-gtk/empathy-individual-view.c
parentb3ee9d59131212736dc713e7f1687cf8536bb979 (diff)
downloadgsoc2013-empathy-7cd053aff86931fdf85c8016701956d1fb43e646.tar
gsoc2013-empathy-7cd053aff86931fdf85c8016701956d1fb43e646.tar.gz
gsoc2013-empathy-7cd053aff86931fdf85c8016701956d1fb43e646.tar.bz2
gsoc2013-empathy-7cd053aff86931fdf85c8016701956d1fb43e646.tar.lz
gsoc2013-empathy-7cd053aff86931fdf85c8016701956d1fb43e646.tar.xz
gsoc2013-empathy-7cd053aff86931fdf85c8016701956d1fb43e646.tar.zst
gsoc2013-empathy-7cd053aff86931fdf85c8016701956d1fb43e646.zip
use different labels if view is empty
either show "no match found" or "your contact list is empty". fixes bug #621642
Diffstat (limited to 'libempathy-gtk/empathy-individual-view.c')
-rw-r--r--libempathy-gtk/empathy-individual-view.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index 7882123f7..369933e6a 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -2221,6 +2221,19 @@ empathy_individual_view_set_live_search (EmpathyIndividualView *view,
}
gboolean
+empathy_individual_view_is_searching (EmpathyIndividualView *self)
+{
+ EmpathyIndividualViewPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_INDIVIDUAL_VIEW (self), FALSE);
+
+ priv = GET_PRIV (self);
+
+ return (priv->search_widget != NULL &&
+ gtk_widget_get_visible (priv->search_widget));
+}
+
+gboolean
empathy_individual_view_get_show_offline (EmpathyIndividualView *self)
{
EmpathyIndividualViewPriv *priv;