summaryrefslogtreecommitdiff
path: root/riscos/window.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-05 23:44:31 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-05 23:44:31 +0000
commit8ec7ad053a9a291ea2619055b1ca1989d4c975b9 (patch)
treeaa7272b673e2062985667d87fcfe7e19f30eb239 /riscos/window.c
parent4ca959f46baf18213bf5ded769d87c7f030d392f (diff)
downloadnetsurf-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 'riscos/window.c')
-rw-r--r--riscos/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscos/window.c b/riscos/window.c
index f3c92092c..76c4105bb 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -3824,11 +3824,11 @@ void ro_gui_window_prepare_pageinfo(struct gui_window *g)
sprintf(icon_buf, "file_xxx");
if (content_get_type(h) == CONTENT_HTML) {
- if (html_get_encoding(h)) {
+ if (content_get_encoding(h)) {
char enc_token[10] = "Encoding0";
enc_token[8] = '0' + html_get_encoding_source(h);
snprintf(enc_buf, sizeof enc_buf, "%s (%s)",
- html_get_encoding(h),
+ content_get_encoding(h),
messages_get(enc_token));
enc = enc_buf;
} else {