From 8774137a27ee475ead620a83e7c6c0cf182363a2 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 03:11:32 -0400 Subject: MqWebView: Change type of Web view parameter in URI callback --- (limited to 'src/web-view.c') 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:"), -- cgit v0.9.1