summaryrefslogtreecommitdiff
path: root/desktop/browser.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-08-24 12:29:30 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-08-24 12:29:30 +0000
commit63c07ee28d890c4afd83233bb055d482b92162c9 (patch)
treef2fd049d8603c4d9c52b906358b061ebc1e78a84 /desktop/browser.h
parent85ec83636d60fe945bc3df00cb20d9a850ce7ae8 (diff)
downloadnetsurf-63c07ee28d890c4afd83233bb055d482b92162c9.tar.gz
netsurf-63c07ee28d890c4afd83233bb055d482b92162c9.tar.bz2
Core part of search improvement:
+ Split up browser window and content related elements of html & text search. + Associate search contexts with contents, rather than browser windows. + Remove highlighting of search terms dependency on current_redraw_browser. + Fixes issues with search contexts being applied to the wrong content. svn path=/trunk/netsurf/; revision=12646
Diffstat (limited to 'desktop/browser.h')
-rw-r--r--desktop/browser.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/browser.h b/desktop/browser.h
index 3d982e32e..7ea2ab3fb 100644
--- a/desktop/browser.h
+++ b/desktop/browser.h
@@ -187,12 +187,12 @@ struct browser_window {
/** Last time a link was followed in this window */
unsigned int last_action;
- /** search context for free text search */
- struct search_context *search_context;
-
- /** Content with current selection, or NULL if none */
+ /** Current selection, or NULL if none */
struct selection *cur_sel;
+ /** Current context for free text search, or NULL if none */
+ struct search_context *cur_search;
+
/** cache of the currently displayed status text. */
char *status_text; /**< Current status bar text. */
int status_text_len; /**< Length of the ::status_text buffer. */