From d5d032cf6644dd8b8e2bd50d4aef9ed478c04784 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 30 Oct 2017 15:35:17 -0400 Subject: mq_web_view_scheme_connect_ready_callback(): New function --- (limited to 'src') diff --git a/src/web-view-schemes/methods.c b/src/web-view-schemes/methods.c index 96c5496..e46f0b1 100644 --- a/src/web-view-schemes/methods.c +++ b/src/web-view-schemes/methods.c @@ -21,6 +21,13 @@ #include "schemes.h" +void +mq_web_view_scheme_connect_ready_callback(MqWebViewScheme *scheme, + void (*ready_cb)(MqWebViewScheme *, MqWebView *)) +{ + scheme->ready_cb = ready_cb; +} + static gboolean check_and_set_methods(MqWebViewSchemeMethods **methods, MqWebViewScheme *scheme, const gchar *uri, diff --git a/src/web-view-schemes/schemes.h b/src/web-view-schemes/schemes.h index 3c27769..fd8f7a5 100644 --- a/src/web-view-schemes/schemes.h +++ b/src/web-view-schemes/schemes.h @@ -68,6 +68,10 @@ extern MqWebViewSchemeMethods mq_web_view_normal_scheme_methods; extern MqWebViewSchemeMethods mq_web_view_view_source_scheme_methods; void +mq_web_view_scheme_connect_ready_callback(MqWebViewScheme *scheme, + void (*ready_cb)(MqWebViewScheme *, MqWebView *)); + +void mq_web_view_scheme_set_methods(MqWebViewSchemeMethods **methods, MqWebViewScheme *scheme, const gchar *uri); -- cgit v0.9.1