summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web-view-schemes/methods.c4
-rw-r--r--src/web-view-schemes/schemes.h4
-rw-r--r--src/web-view.c8
3 files changed, 8 insertions, 8 deletions
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. */