diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2009-12-07 14:55:18 +0200 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2009-12-07 14:55:18 +0200 |
commit | c331d4e2b4675d73ff2c6fee4a0b1b9226f9ef25 (patch) | |
tree | 28e519f30235706448db6c1c9672c3eabc01293a | |
parent | 546b9b4772a7ddaf10ae659ae2673fe948ed21e9 (diff) |
Allow a visible function to be set more than once in HildonLiveSearch
Avoiding this way critical warnings in HildonTouchSelector.
-rw-r--r-- | hildon/hildon-live-search.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hildon/hildon-live-search.c b/hildon/hildon-live-search.c index d89873e..8fe1a4f 100644 --- a/hildon/hildon-live-search.c +++ b/hildon/hildon-live-search.c @@ -953,9 +953,12 @@ hildon_live_search_set_visible_func (HildonLiveSearch *liv priv = livesearch->priv; - g_return_if_fail (priv->visible_func == NULL); g_return_if_fail (priv->text_column == -1); + if (priv->visible_destroy) { + priv->visible_destroy (priv->visible_data); + } + priv->visible_func = func; priv->visible_data = data; priv->visible_destroy = destroy; |