aboutsummaryrefslogtreecommitdiff
path: root/hildon
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2010-03-22 16:53:14 +0200
committerClaudio Saavedra <csaavedra@igalia.com>2010-03-22 16:53:14 +0200
commitfc750821842df60096068c9c9e4b33085a1eecbf (patch)
tree965195cbad8782a6390ecde5a25d977d3297dcdc /hildon
parentf2c9bc3cdc7658fe4382186d0d9dfb8c39b1d669 (diff)
[HildonLiveSearch] Unset the filter visible func. during dispose
This prevents a crasher when the model changes after the live search is disposed.
Diffstat (limited to 'hildon')
-rw-r--r--hildon/hildon-live-search.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hildon/hildon-live-search.c b/hildon/hildon-live-search.c
index 959fc3a..3a1adb2 100644
--- a/hildon/hildon-live-search.c
+++ b/hildon/hildon-live-search.c
@@ -566,6 +566,13 @@ hildon_live_search_dispose (GObject *object)
priv->prefix = NULL;
}
+ if (priv->visible_func_set == TRUE) {
+ gtk_tree_model_filter_set_visible_func (priv->filter,
+ FALSE,
+ NULL, NULL);
+ priv->visible_func_set = FALSE;
+ }
+
if (priv->visible_destroy) {
priv->visible_destroy (priv->visible_data);
priv->visible_destroy = NULL;