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 /src/ephy-window.c | |
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 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 52c19603c..ad31d1682 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -3753,13 +3753,16 @@ ephy_window_set_zoom (EphyWindow *window, { EphyEmbed *embed; float current_zoom = 1.0; + WebKitWebView *web_view; g_return_if_fail (EPHY_IS_WINDOW (window)); embed = window->priv->active_embed; g_return_if_fail (embed != NULL); - current_zoom = ephy_embed_get_zoom (embed); + web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed); + + g_object_get (G_OBJECT (web_view), "zoom-level", ¤t_zoom, NULL); if (zoom == ZOOM_IN) { @@ -3772,7 +3775,7 @@ ephy_window_set_zoom (EphyWindow *window, if (zoom != current_zoom) { - ephy_embed_set_zoom (embed, zoom); + g_object_set (G_OBJECT (web_view), "zoom-level", zoom, NULL); } } |