diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-30 22:54:14 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-30 22:54:14 (EDT) |
commit | 5aeb788c3046ab5134691843b40d6318b14d5aa2 (patch) | |
tree | 0f02b37b37d79c094bf46c22aa8b0208828569ce /src | |
parent | becc7cf16cccabffd1eff236956151a02c156c1b (diff) | |
download | marquee-5aeb788c3046ab5134691843b40d6318b14d5aa2.zip marquee-5aeb788c3046ab5134691843b40d6318b14d5aa2.tar.gz marquee-5aeb788c3046ab5134691843b40d6318b14d5aa2.tar.bz2 |
mq_web_view_scheme_set_methods(): Take an (MqWebView *) parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/web-view-schemes/methods.c | 4 | ||||
-rw-r--r-- | src/web-view-schemes/schemes.h | 4 | ||||
-rw-r--r-- | src/web-view.c | 8 |
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. */ |