summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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