aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-08 19:29:14 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-14 15:21:50 +0800
commit7ce8a9a175f90a8e214eb80a36aaa57fddcacb52 (patch)
tree80a441f3cbe7b74fec5a4d112b0f86b37e2d25bf
parentab756d6ee9c60b803d8b7785cbc507b6a96580bf (diff)
downloadgsoc2013-empathy-7ce8a9a175f90a8e214eb80a36aaa57fddcacb52.tar
gsoc2013-empathy-7ce8a9a175f90a8e214eb80a36aaa57fddcacb52.tar.gz
gsoc2013-empathy-7ce8a9a175f90a8e214eb80a36aaa57fddcacb52.tar.bz2
gsoc2013-empathy-7ce8a9a175f90a8e214eb80a36aaa57fddcacb52.tar.lz
gsoc2013-empathy-7ce8a9a175f90a8e214eb80a36aaa57fddcacb52.tar.xz
gsoc2013-empathy-7ce8a9a175f90a8e214eb80a36aaa57fddcacb52.tar.zst
gsoc2013-empathy-7ce8a9a175f90a8e214eb80a36aaa57fddcacb52.zip
add empathy_roster_view_is_searching()
Copied from empathy_individual_view_is_searching()
-rw-r--r--libempathy-gtk/empathy-roster-view.c7
-rw-r--r--libempathy-gtk/empathy-roster-view.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c
index bb10655b7..ce8f19f64 100644
--- a/libempathy-gtk/empathy-roster-view.c
+++ b/libempathy-gtk/empathy-roster-view.c
@@ -1187,3 +1187,10 @@ empathy_roster_view_is_empty (EmpathyRosterView *self)
{
return self->priv->empty;
}
+
+gboolean
+empathy_roster_view_is_searching (EmpathyRosterView *self)
+{
+ return (self->priv->search != NULL &&
+ gtk_widget_get_visible (GTK_WIDGET (self->priv->search)));
+}
diff --git a/libempathy-gtk/empathy-roster-view.h b/libempathy-gtk/empathy-roster-view.h
index c0e615f9e..7a87bea7a 100644
--- a/libempathy-gtk/empathy-roster-view.h
+++ b/libempathy-gtk/empathy-roster-view.h
@@ -77,6 +77,8 @@ void empathy_roster_view_set_individual_tooltip_cb (EmpathyRosterView *self,
gboolean empathy_roster_view_is_empty (EmpathyRosterView *self);
+gboolean empathy_roster_view_is_searching (EmpathyRosterView *self);
+
G_END_DECLS
#endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/