From 8ec7ad053a9a291ea2619055b1ca1989d4c975b9 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 5 Nov 2014 23:44:31 +0000 Subject: 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. --- riscos/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscos') 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 { -- cgit v1.2.3