diff options
author | Alp Toker <atoker@src.gnome.org> | 2008-05-30 13:25:29 +0800 |
---|---|---|
committer | Alp Toker <atoker@src.gnome.org> | 2008-05-30 13:25:29 +0800 |
commit | cf5105f09f590efaf9d56b1593c6e00e15f002f6 (patch) | |
tree | 42ad27d9102884f69d8ec03f228d5a4ec5eca0a6 /embed | |
parent | 9a64743c43fd9586bff36d24989e6b293399f9e1 (diff) | |
download | gsoc2013-epiphany-cf5105f09f590efaf9d56b1593c6e00e15f002f6.tar gsoc2013-epiphany-cf5105f09f590efaf9d56b1593c6e00e15f002f6.tar.gz gsoc2013-epiphany-cf5105f09f590efaf9d56b1593c6e00e15f002f6.tar.bz2 gsoc2013-epiphany-cf5105f09f590efaf9d56b1593c6e00e15f002f6.tar.lz gsoc2013-epiphany-cf5105f09f590efaf9d56b1593c6e00e15f002f6.tar.xz gsoc2013-epiphany-cf5105f09f590efaf9d56b1593c6e00e15f002f6.tar.zst gsoc2013-epiphany-cf5105f09f590efaf9d56b1593c6e00e15f002f6.zip |
Bring back zoom support using the zoom-level property added in WebKit r34249.
svn path=/trunk/; revision=8261
Diffstat (limited to 'embed')
-rw-r--r-- | embed/webkit/webkit-embed.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index 84851b0b9..80cdd3b82 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -435,13 +435,16 @@ impl_reload (EphyEmbed *embed, static float impl_get_zoom (EphyEmbed *embed) { - return 1.0; + float zoom = 1.0f; + g_object_get (WEBKIT_EMBED (embed)->priv->web_view, "zoom-level", &zoom, NULL); + return zoom; } static void impl_set_zoom (EphyEmbed *embed, float zoom) { + g_object_set (WEBKIT_EMBED (embed)->priv->web_view, "zoom-level", zoom, NULL); } static void |