diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-07-01 05:27:18 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-07-01 05:27:18 +0800 |
commit | 1e829eefa511c3463deddb7c3d99d4c27960e077 (patch) | |
tree | 9a38757672b796632a674408390a2611529c1261 /embed/webkit | |
parent | 76dd77e2f40b6e2de50716117c3abd2c49e528a4 (diff) | |
download | gsoc2013-epiphany-1e829eefa511c3463deddb7c3d99d4c27960e077.tar gsoc2013-epiphany-1e829eefa511c3463deddb7c3d99d4c27960e077.tar.gz gsoc2013-epiphany-1e829eefa511c3463deddb7c3d99d4c27960e077.tar.bz2 gsoc2013-epiphany-1e829eefa511c3463deddb7c3d99d4c27960e077.tar.lz gsoc2013-epiphany-1e829eefa511c3463deddb7c3d99d4c27960e077.tar.xz gsoc2013-epiphany-1e829eefa511c3463deddb7c3d99d4c27960e077.tar.zst gsoc2013-epiphany-1e829eefa511c3463deddb7c3d99d4c27960e077.zip |
embed: remove ephy_embed_{set,get}_zoom.
Set zoom-level on the WebKitWebView directly.
svn path=/trunk/; revision=8327
Diffstat (limited to 'embed/webkit')
-rw-r--r-- | embed/webkit/webkit-embed.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index 4d483844a..ec9ceefb2 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -383,23 +383,6 @@ impl_get_location (EphyEmbed *embed, return g_strdup (webkit_web_frame_get_uri (web_frame)); } -static float -impl_get_zoom (EphyEmbed *embed) -{ - 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_return_if_fail (zoom > 0.0); - - g_object_set (WEBKIT_EMBED (embed)->priv->web_view, "zoom-level", zoom, NULL); -} - static void impl_scroll_lines (EphyEmbed *embed, int num_lines) @@ -502,8 +485,6 @@ ephy_embed_iface_init (EphyEmbedIface *iface) iface->go_up = impl_go_up; iface->get_location = impl_get_location; iface->get_js_status = impl_get_js_status; - iface->set_zoom = impl_set_zoom; - iface->get_zoom = impl_get_zoom; iface->scroll_lines = impl_scroll_lines; iface->scroll_pages = impl_scroll_pages; iface->scroll_pixels = impl_scroll_pixels; |