aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-05-11 12:27:35 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-05-11 12:27:35 +0800
commit59c9d146b95fdf399b64971d6b86d9e8a5474157 (patch)
treeb53a6c5bcea1ca1c1c749018fdcd2fcad0207852 /mail/mail-display.c
parentfce621fd558b52b3bdcca568af4c2676ba2e461c (diff)
downloadgsoc2013-evolution-59c9d146b95fdf399b64971d6b86d9e8a5474157.tar
gsoc2013-evolution-59c9d146b95fdf399b64971d6b86d9e8a5474157.tar.gz
gsoc2013-evolution-59c9d146b95fdf399b64971d6b86d9e8a5474157.tar.bz2
gsoc2013-evolution-59c9d146b95fdf399b64971d6b86d9e8a5474157.tar.lz
gsoc2013-evolution-59c9d146b95fdf399b64971d6b86d9e8a5474157.tar.xz
gsoc2013-evolution-59c9d146b95fdf399b64971d6b86d9e8a5474157.tar.zst
gsoc2013-evolution-59c9d146b95fdf399b64971d6b86d9e8a5474157.zip
Use the ESearchingTokenizer to highlight search matches for folder-level
2001-05-10 Jon Trowbridge <trow@ximian.com> * folder-browser.c (folder_browser_config_search): Use the ESearchingTokenizer to highlight search matches for folder-level searches. Still mildly broken, but it works for the simple cases. * mail-display.c (mail_display_new): Use our ESearchingTokenizer for the mail display GtkHTML widget. * mail-search.c (dialog_clicked_cb): Use the ESearchingTokenizer to highlight search matches. (mail_search_construct): Add a match count to the search dialog. * e-searching-tokenizer.c (e_searching_tokenizer_set_search_string): Added. A custom HTML tokenizer that does highlighting of search strings. svn path=/trunk/; revision=9754
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index a3559053a0..c00201d6d9 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -35,6 +35,7 @@
#include <gtkhtml/htmlinterval.h> /* XXX */
#include <e-util/e-html-utils.h>
+#include <e-util/e-searching-tokenizer.h>
#include "mail-display.h"
#include "mail-config.h"
@@ -1418,6 +1419,8 @@ mail_display_new (void)
gtk_widget_show (GTK_WIDGET (scroll));
html = gtk_html_new ();
+ html_engine_set_tokenizer (GTK_HTML (html)->engine, e_searching_tokenizer_new ());
+
gtk_html_set_default_content_type (GTK_HTML (html),
"text/html; charset=utf-8");