summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 03:11:32 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 03:11:32 (EDT)
commit8774137a27ee475ead620a83e7c6c0cf182363a2 (patch)
treef60e088cc9a636e4c7c8cd4ecd01b68db2afdc47 /src
parentcb4c01824210dfe526a9f68aaa9962f31be658ab (diff)
downloadmarquee-8774137a27ee475ead620a83e7c6c0cf182363a2.zip
marquee-8774137a27ee475ead620a83e7c6c0cf182363a2.tar.gz
marquee-8774137a27ee475ead620a83e7c6c0cf182363a2.tar.bz2
MqWebView: Change type of Web view parameter in URI callback
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:"),