aboutsummaryrefslogtreecommitdiff
path: root/hildon/hildon-live-search.c
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2009-11-17 14:12:11 +0200
committerClaudio Saavedra <csaavedra@igalia.com>2009-11-17 15:05:08 +0200
commit5803bc8666aacc8149c393045b8f040bba8220c4 (patch)
tree5da75a3ea54e40acad319ce3b4c51cf2f6b48fb4 /hildon/hildon-live-search.c
parent5775689867122645f64e379eae6093203a53a65e (diff)
Add a hildon_live_search_get_filter() method
Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
Diffstat (limited to 'hildon/hildon-live-search.c')
-rw-r--r--hildon/hildon-live-search.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/hildon/hildon-live-search.c b/hildon/hildon-live-search.c
index ed64c90..d9b7058 100644
--- a/hildon/hildon-live-search.c
+++ b/hildon/hildon-live-search.c
@@ -671,6 +671,26 @@ hildon_live_search_set_filter (HildonLiveSearch *livesearch,
}
/**
+ * hildon_live_search_get_filter:
+ * @livesearch: An #HildonLiveSearch widget
+ *
+ * Returns: The #GtkTreeModelFilter set with hildon_live_search_set_filter()
+ *
+ * Since: 2.2.4
+ */
+GtkTreeModelFilter *
+hildon_live_search_get_filter (HildonLiveSearch *livesearch)
+{
+ HildonLiveSearchPrivate *priv;
+
+ g_return_if_fail (HILDON_IS_LIVE_SEARCH (livesearch));
+
+ priv = livesearch->priv;
+
+ return priv->filter;
+}
+
+/**
* hildon_live_search_set_text_column:
* @livesearch: a #HildonLiveSearch
* @text_column: the column in the model of @livesearch to get the strings