summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web-view.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/web-view.c b/src/web-view.c
index b0fd472..3405e1b 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -473,18 +473,15 @@ context_menu_cb(MqWebView *web_view, WebKitContextMenu *context_menu,
}
static void
-uri_cb(WebKitWebView *wk_web_view, GParamSpec G_GNUC_UNUSED *param_spec)
+uri_cb(MqWebView *web_view, GParamSpec G_GNUC_UNUSED *param_spec)
{
const gchar *uri;
- MqWebView *web_view;
-
- web_view = MQ_WEB_VIEW(wk_web_view);
if (web_view->uri) {
g_free(web_view->uri);
}
- uri = webkit_web_view_get_uri(wk_web_view);
+ uri = webkit_web_view_get_uri(WEBKIT_WEB_VIEW(web_view));
if (g_str_has_prefix(uri, "mq-about:")) {
web_view->uri = g_strconcat("about:", uri + strlen("mq-about:"),