diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-07 12:33:34 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-07 12:33:34 +0000 |
commit | 3405803280c9cafab0a4ef229faa4bc447e4c953 (patch) | |
tree | ac7d85272d21ec15cec1825a2ea6b43f7b4cf11b /gtk | |
parent | 6993e842d902e363d44014fa514c91ca30896555 (diff) | |
download | netsurf-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.c | 8 |
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); } |