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 | |
parent | 76dd77e2f40b6e2de50716117c3abd2c49e528a4 (diff) | |
download | gsoc2013-epiphany-1e829eefa511c3463deddb7c3d99d4c27960e077.tar.gz 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')
-rw-r--r-- | src/ephy-window.c | 7 | ||||
-rw-r--r-- | src/epiphany.defs | 15 |
2 files changed, 5 insertions, 17 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); } } diff --git a/src/epiphany.defs b/src/epiphany.defs index 682dc8c54..133440830 100644 --- a/src/epiphany.defs +++ b/src/epiphany.defs @@ -1066,12 +1066,6 @@ ) ) -(define-method get_zoom - (of-object "EphyEmbed") - (c-name "ephy_embed_get_zoom") - (return-type "float") -) - (define-method get_document_type (of-object "EphyEmbed") (c-name "ephy_embed_get_document_type") @@ -1174,15 +1168,6 @@ (return-type "none") ) -(define-method set_zoom - (of-object "EphyEmbed") - (c-name "ephy_embed_set_zoom") - (return-type "none") - (parameters - '("float" "zoom") - ) -) - (define-method has_automatic_encoding (of-object "EphyEmbed") (c-name "ephy_embed_has_automatic_encoding") |