From 5aeb788c3046ab5134691843b40d6318b14d5aa2 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 22:54:14 -0400 Subject: mq_web_view_scheme_set_methods(): Take an (MqWebView *) parameter --- (limited to 'src') diff --git a/src/web-view-schemes/methods.c b/src/web-view-schemes/methods.c index 828ac7a..9fb6896 100644 --- a/src/web-view-schemes/methods.c +++ b/src/web-view-schemes/methods.c @@ -38,8 +38,8 @@ check_and_set_methods(MqWebViewSchemeMethods **methods, } void -mq_web_view_scheme_set_methods(MqWebViewSchemeMethods **methods, - MqWebViewScheme *scheme, const gchar *uri) +mq_web_view_scheme_set_methods(MqWebView *web_view, MqWebViewScheme *scheme, + MqWebViewSchemeMethods **methods, const gchar *uri) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-value" diff --git a/src/web-view-schemes/schemes.h b/src/web-view-schemes/schemes.h index 33f8e50..da0d55d 100644 --- a/src/web-view-schemes/schemes.h +++ b/src/web-view-schemes/schemes.h @@ -65,8 +65,8 @@ extern MqWebViewSchemeMethods mq_web_view_normal_scheme_methods; extern MqWebViewSchemeMethods mq_web_view_view_source_scheme_methods; void -mq_web_view_scheme_set_methods(MqWebViewSchemeMethods **methods, - MqWebViewScheme *scheme, const gchar *uri); +mq_web_view_scheme_set_methods(MqWebView *web_view, MqWebViewScheme *scheme, + MqWebViewSchemeMethods **methods, const gchar *uri); G_END_DECLS diff --git a/src/web-view.c b/src/web-view.c index 887bedd..01800b8 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -79,8 +79,8 @@ uri_cb(MqWebView *web_view, GParamSpec G_GNUC_UNUSED *param_spec) uri = webkit_web_view_get_uri(WEBKIT_WEB_VIEW(web_view)); - mq_web_view_scheme_set_methods(&web_view->scheme_methods, - &web_view->scheme, uri); + mq_web_view_scheme_set_methods(web_view, &web_view->scheme, + &web_view->scheme_methods, uri); web_view->uri = web_view->scheme_methods->display_uri( web_view, &web_view->scheme, uri); @@ -375,8 +375,8 @@ void mq_web_view_load_uri(MqWebView *web_view, const gchar *uri) { - mq_web_view_scheme_set_methods(&web_view->scheme_methods, - &web_view->scheme, uri); + mq_web_view_scheme_set_methods(web_view, &web_view->scheme, + &web_view->scheme_methods, uri); if (!uri) { /* Happens during object construction. */ -- cgit v0.9.1