aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-searching-tokenizer.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-03-06 03:46:20 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-03-06 03:46:20 +0800
commitb11b2abeebc0ca31955f2929a72d1d12786f9b97 (patch)
tree279d8dce2c9a54ecf1eb6942cc5ab47761d06909 /mail/e-searching-tokenizer.c
parent771d438d34d732b00c98dbf2f0b74f54c12320aa (diff)
downloadgsoc2013-evolution-b11b2abeebc0ca31955f2929a72d1d12786f9b97.tar.gz
gsoc2013-evolution-b11b2abeebc0ca31955f2929a72d1d12786f9b97.tar.zst
gsoc2013-evolution-b11b2abeebc0ca31955f2929a72d1d12786f9b97.zip
Don't set our parent window as the efhd, ehfd isn't even a widget.
2004-03-05 Jeffrey Stedfast <fejj@ximian.com> * em-format-html-display.c (em_format_html_display_search): Don't set our parent window as the efhd, ehfd isn't even a widget. Fixes bug #54030 * em-format-html-display.c (efhd_search_response): Reset the searching tokeniser on Cancel. * e-searching-tokenizer.c (e_searching_tokenizer_reset): New function to reset a search tokeniser. svn path=/trunk/; revision=24977
Diffstat (limited to 'mail/e-searching-tokenizer.c')
-rw-r--r--mail/e-searching-tokenizer.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/e-searching-tokenizer.c b/mail/e-searching-tokenizer.c
index 44e88df378..020d4d2fe4 100644
--- a/mail/e-searching-tokenizer.c
+++ b/mail/e-searching-tokenizer.c
@@ -1242,10 +1242,19 @@ e_searching_tokenizer_set_secondary_case_sensitivity (ESearchingTokenizer *st, g
gint
e_searching_tokenizer_match_count (ESearchingTokenizer *st)
{
- g_return_val_if_fail (st && E_IS_SEARCHING_TOKENIZER (st), -1);
+ g_return_val_if_fail (E_IS_SEARCHING_TOKENIZER (st), -1);
if (st->priv->engine)
return st->priv->engine->matchcount;
return 0;
}
+
+void
+e_searching_tokenizer_reset (ESearchingTokenizer *st)
+{
+ if (st->priv->engine) {
+ searcher_free (st->priv->engine);
+ st->priv->engine = NULL;
+ }
+}