aboutsummaryrefslogtreecommitdiffstats
path: root/embed/webkit/webkit-embed.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-02-27 00:37:43 +0800
committerXan Lopez <xan@src.gnome.org>2009-02-27 00:37:43 +0800
commit524007db88546cf76a6d0a0c1c512dd93058bc63 (patch)
tree1c9d1aadf4e2f3ee2c1d24c54e8b412ad0b144c1 /embed/webkit/webkit-embed.c
parent01b36dd4aeebac60076b1e8d28dd1181129939bd (diff)
downloadgsoc2013-epiphany-524007db88546cf76a6d0a0c1c512dd93058bc63.tar
gsoc2013-epiphany-524007db88546cf76a6d0a0c1c512dd93058bc63.tar.gz
gsoc2013-epiphany-524007db88546cf76a6d0a0c1c512dd93058bc63.tar.bz2
gsoc2013-epiphany-524007db88546cf76a6d0a0c1c512dd93058bc63.tar.lz
gsoc2013-epiphany-524007db88546cf76a6d0a0c1c512dd93058bc63.tar.xz
gsoc2013-epiphany-524007db88546cf76a6d0a0c1c512dd93058bc63.tar.zst
gsoc2013-epiphany-524007db88546cf76a6d0a0c1c512dd93058bc63.zip
Implement get/set encoding for the embed.
Bug #525265 svn path=/trunk/; revision=8815
Diffstat (limited to 'embed/webkit/webkit-embed.c')
-rw-r--r--embed/webkit/webkit-embed.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index aa512f24f..0460d7d3a 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -561,12 +561,15 @@ static void
impl_set_encoding (EphyEmbed *embed,
const char *encoding)
{
+ WebKitWebView *view = WEBKIT_EMBED (embed)->priv->web_view;
+ webkit_web_view_set_custom_encoding (view, encoding);
}
-static char *
+static const char *
impl_get_encoding (EphyEmbed *embed)
{
- return NULL;
+ WebKitWebView *view = WEBKIT_EMBED (embed)->priv->web_view;
+ return webkit_web_view_get_custom_encoding (view);;
}
static gboolean