summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-29 18:12:12 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-29 18:12:12 (EDT)
commitfbf262925f1a99e618006041a5d39dd2cdf18f03 (patch)
treed17101da59f60e799bc810423c28246ab586bed2
parentfeda98f9c3ecadeaf364f16c12d112e19ce7183f (diff)
downloadmarquee-fbf262925f1a99e618006041a5d39dd2cdf18f03.zip
marquee-fbf262925f1a99e618006041a5d39dd2cdf18f03.tar.gz
marquee-fbf262925f1a99e618006041a5d39dd2cdf18f03.tar.bz2
mq_about_redirect(): New function
-rw-r--r--src/about.c10
-rw-r--r--src/about.h3
2 files changed, 13 insertions, 0 deletions
diff --git a/src/about.c b/src/about.c
index c0ede12..1787a27 100644
--- a/src/about.c
+++ b/src/about.c
@@ -88,3 +88,13 @@ mq_about_response(WebKitURISchemeRequest *request, gchar *contents)
"text/html");
g_object_unref(stream);
}
+
+void
+mq_about_redirect(WebKitURISchemeRequest *request, const gchar *uri)
+{
+ WebKitWebView *web_view;
+
+ web_view = webkit_uri_scheme_request_get_web_view(request);
+ webkit_web_view_load_request(web_view, webkit_uri_request_new(uri));
+ mq_about_response(request, g_strdup(""));
+}
diff --git a/src/about.h b/src/about.h
index f28d9fe..7e527ea 100644
--- a/src/about.h
+++ b/src/about.h
@@ -32,4 +32,7 @@ mq_about_request(WebKitURISchemeRequest *request, MqApplication *application);
void
mq_about_response(WebKitURISchemeRequest *request, gchar *contents);
+void
+mq_about_redirect(WebKitURISchemeRequest *request, const gchar *uri);
+
#endif