summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-27 22:36:37 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-27 22:36:37 (EDT)
commitc7bd9ebe7a48c8033374d8622447d29be8af49f5 (patch)
tree15154755eec071a6ed053c364a2ede1a263af914
parent7860209930cc9d9cf617b7113aa18f01bc531226 (diff)
downloadmarquee-c7bd9ebe7a48c8033374d8622447d29be8af49f5.zip
marquee-c7bd9ebe7a48c8033374d8622447d29be8af49f5.tar.gz
marquee-c7bd9ebe7a48c8033374d8622447d29be8af49f5.tar.bz2
mq_about_request(): Handle "about:resources/*" requests
-rw-r--r--src/about.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/about.c b/src/about.c
index 63cfaaa..c00137d 100644
--- a/src/about.c
+++ b/src/about.c
@@ -27,6 +27,7 @@
#include "about/paths.h"
#include "application.h"
+#include "resources.h"
static GHashTable *
parse_query_string(gchar *str)
@@ -88,6 +89,9 @@ mq_about_request(WebKitURISchemeRequest *request, MqApplication *application)
mq_about_preferences_response(application, query, request);
} else if (g_strcmp0(path, "marquee") == 0) {
mq_about_marquee_response(application, query, request);
+ } else if (g_str_has_prefix(path, "resources/")) {
+ mq_resource_response(application, path + sizeof("resources"),
+ request);
} else {
return;
}