diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-05 23:44:31 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-05 23:44:31 +0000 |
commit | 8ec7ad053a9a291ea2619055b1ca1989d4c975b9 (patch) | |
tree | aa7272b673e2062985667d87fcfe7e19f30eb239 /gtk/viewsource.c | |
parent | 4ca959f46baf18213bf5ded769d87c7f030d392f (diff) | |
download | netsurf-8ec7ad053a9a291ea2619055b1ca1989d4c975b9.tar.gz netsurf-8ec7ad053a9a291ea2619055b1ca1989d4c975b9.tar.bz2 |
Make the fetching of a contents encoding generic.
The frontends previously had to use an html renderer API to get the
encoding of a content. This also required the explicit checking of the
contents type rather than using the existing content API to abstract
this knowledge.
Diffstat (limited to 'gtk/viewsource.c')
-rw-r--r-- | gtk/viewsource.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/viewsource.c b/gtk/viewsource.c index 7ff8ad64b..9a103eef0 100644 --- a/gtk/viewsource.c +++ b/gtk/viewsource.c @@ -23,7 +23,6 @@ #include "utils/messages.h" #include "desktop/browser.h" #include "content/content.h" -#include "render/html.h" #include "gtk/viewdata.h" #include "gtk/viewsource.h" @@ -62,7 +61,7 @@ void nsgtk_viewsource(GtkWindow *parent, struct browser_window *bw) sprintf(title, "Source of %s - NetSurf", nsurl_access(browser_window_get_url(bw))); ret = utf8_from_enc(source_data, - html_get_encoding(hlcontent), + content_get_encoding(hlcontent), source_size, &ndata, &ndata_len); |