summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 15:35:17 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 15:35:17 (EDT)
commitd5d032cf6644dd8b8e2bd50d4aef9ed478c04784 (patch)
tree1b2fdc48c4b6b4be85bad3cef2d7e922bdc763c9 /src
parentdc1510ec946c92cd7ede46f9089c5559d409200e (diff)
downloadmarquee-d5d032cf6644dd8b8e2bd50d4aef9ed478c04784.zip
marquee-d5d032cf6644dd8b8e2bd50d4aef9ed478c04784.tar.gz
marquee-d5d032cf6644dd8b8e2bd50d4aef9ed478c04784.tar.bz2
mq_web_view_scheme_connect_ready_callback(): New function
Diffstat (limited to 'src')
-rw-r--r--src/web-view-schemes/methods.c7
-rw-r--r--src/web-view-schemes/schemes.h4
2 files changed, 11 insertions, 0 deletions
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);