From: Daniel Carl Date: Mon, 24 Feb 2014 19:50:07 +0000 (+0100) Subject: Fixed wrong webview used in load status callback. X-Git-Url: https://git.owens.tech/about.html/about.html/git?a=commitdiff_plain;h=f1454180d573b0d8dc639ba71554147caf5aadee;p=vimb.git Fixed wrong webview used in load status callback. --- 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);