[epiphany] ephy-web-view: restore zoom level on load started



commit eb7b512e0375c159334f58f984b712654acdeff6
Author: Xan Lopez <xan igalia com>
Date:   Mon Mar 25 23:41:15 2013 +0100

    ephy-web-view: restore zoom level on load started
    
    This seems to work much better, although it makes the zoom level be
    wrong when *leaving pages* in some cases. Still, an improvement, so
    let's do this for now.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693951

 embed/ephy-web-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 8307a06..ce0312a 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1574,6 +1574,9 @@ load_changed_cb (WebKitWebView *web_view,
     priv->status_message = g_strdup (priv->loading_title);
     g_object_notify (object, "status-message");
 
+    /* Zoom level. */
+    restore_zoom_level (view, loading_uri);
+
     break;
   }
   case WEBKIT_LOAD_REDIRECTED:
@@ -1597,9 +1600,6 @@ load_changed_cb (WebKitWebView *web_view,
 
     ephy_web_view_set_security_level (EPHY_WEB_VIEW (web_view), security_level);
 
-    /* Zoom level. */
-    restore_zoom_level (view, uri);
-
     /* History. */
     if (!ephy_web_view_is_history_frozen (view)) {
       char *history_uri = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]