summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-07 12:33:34 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-07 12:33:34 +0000
commit3405803280c9cafab0a4ef229faa4bc447e4c953 (patch)
treeac7d85272d21ec15cec1825a2ea6b43f7b4cf11b /gtk
parent6993e842d902e363d44014fa514c91ca30896555 (diff)
downloadnetsurf-3405803280c9cafab0a4ef229faa4bc447e4c953.tar.gz
netsurf-3405803280c9cafab0a4ef229faa4bc447e4c953.tar.bz2
Improve content encoding information API
Extend the content_get_encoding() API to retrieve the source of the encoding as well as the actual encoding.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/viewsource.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/viewsource.c b/gtk/viewsource.c
index 9a103eef0..364ec8156 100644
--- a/gtk/viewsource.c
+++ b/gtk/viewsource.c
@@ -61,10 +61,10 @@ 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,
- content_get_encoding(hlcontent),
- source_size,
- &ndata,
- &ndata_len);
+ content_get_encoding(hlcontent, CONTENT_ENCODING_NORMAL),
+ source_size,
+ &ndata,
+ &ndata_len);
if (ret == NSERROR_OK) {
ret = nsgtk_viewdata(title, filename, ndata, ndata_len);
}