summaryrefslogtreecommitdiff
path: root/gtk/gtk_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtk_search.c')
-rw-r--r--gtk/gtk_search.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtk_search.c b/gtk/gtk_search.c
index bb5d0138c..30075be02 100644
--- a/gtk/gtk_search.c
+++ b/gtk/gtk_search.c
@@ -28,6 +28,7 @@
#include "gtk/gtk_window.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"
@@ -99,7 +100,7 @@ gboolean nsgtk_search_back_button_clicked(GtkWidget *widget, gpointer data)
void nsgtk_search_init(struct gtk_scaffolding *g)
{
- struct content *c;
+ hlcache_handle *c;
assert(gui_window_get_browser_window(nsgtk_scaffolding_top_level(g))
!= NULL);
@@ -107,7 +108,8 @@ void nsgtk_search_init(struct gtk_scaffolding *g)
c = gui_window_get_browser_window(nsgtk_scaffolding_top_level(g))->
current_content;
- if ((!c) || (c->type != CONTENT_HTML && c->type != CONTENT_TEXTPLAIN))
+ if ((!c) || (content_get_type(c) != CONTENT_HTML &&
+ content_get_type(c) != CONTENT_TEXTPLAIN))
return;
}