From f1454180d573b0d8dc639ba71554147caf5aadee Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Mon, 24 Feb 2014 20:50:07 +0100
Subject: [PATCH] Fixed wrong webview used in load status callback.

---
 src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index 56ec589..6e807ee 100644
--- a/src/main.c
+++ b/src/main.c
@@ -377,7 +377,7 @@ static void webview_load_status_cb(WebKitWebView *view, GParamSpec *pspec)
 {
     const char *uri = GET_URI();
 
-    switch (webkit_web_view_get_load_status(vb.gui.webview)) {
+    switch (webkit_web_view_get_load_status(view)) {
         case WEBKIT_LOAD_PROVISIONAL:
             /* update load progress in statusbar */
             vb.state.progress = 0;
@@ -387,7 +387,7 @@ static void webview_load_status_cb(WebKitWebView *view, GParamSpec *pspec)
 
         case WEBKIT_LOAD_COMMITTED:
             {
-                WebKitWebFrame *frame = webkit_web_view_get_main_frame(vb.gui.webview);
+                WebKitWebFrame *frame = webkit_web_view_get_main_frame(view);
                 /* set the status */
                 if (g_str_has_prefix(uri, "https://")) {
                     WebKitWebDataSource *src      = webkit_web_frame_get_data_source(frame);
-- 
2.20.1