[epiphany/gnome-3-8] ephy-web-view: restore zoom level on load started



commit 024f4cc40149a770c5c4da8304780a667968f206
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 ef14f2a..db5acdf 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2128,6 +2128,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:
@@ -2151,9 +2154,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]