diff options
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") |