diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-04-07 17:33:58 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-04-07 17:33:58 +0000 |
commit | cffb7ea77b40f31773f7d6b18097e4bcca2ab2f9 (patch) | |
tree | 5fc788ca406f4d8e584d347ef9ef7bc0b978304c | |
parent | 2975e1df84b011548a337e88214a9e7aaaa6d6ce (diff) | |
download | netsurf-cffb7ea77b40f31773f7d6b18097e4bcca2ab2f9.tar.gz netsurf-cffb7ea77b40f31773f7d6b18097e4bcca2ab2f9.tar.bz2 |
Fix for new cache.
svn path=/trunk/netsurf/; revision=10281
-rw-r--r-- | riscos/search.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/riscos/search.c b/riscos/search.c index 79f2a46af..502a2cb02 100644 --- a/riscos/search.c +++ b/riscos/search.c @@ -29,6 +29,7 @@ #include "oslib/wimp.h" #include "utils/config.h" #include "content/content.h" +#include "content/hlcache.h" #include "desktop/browser.h" #include "desktop/gui.h" #include "desktop/search.h" @@ -249,15 +250,15 @@ bool ro_gui_search_prepare_menu(void) */ void ro_gui_search_prepare(struct browser_window *bw) { - struct content *c; + hlcache_handle *h; assert(bw != NULL); - c = bw->current_content; + h = bw->current_content; /* only handle html/textplain contents */ - if ((!c) || (c->type != CONTENT_HTML && - c->type != CONTENT_TEXTPLAIN)) + if ((!h) || (content_get_type(h) != CONTENT_HTML && + content_get_type(h) != CONTENT_TEXTPLAIN)) return; /* if the search dialogue is reopened over a new window, we may |