From feda98f9c3ecadeaf364f16c12d112e19ce7183f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 29 Sep 2017 18:06:25 -0400 Subject: about: Make path handlers send responses to WK --- (limited to 'src/about/marquee.c') diff --git a/src/about/marquee.c b/src/about/marquee.c index 70413aa..c076e24 100644 --- a/src/about/marquee.c +++ b/src/about/marquee.c @@ -20,9 +20,11 @@ */ #include +#include #include "paths.h" #include "../application.h" +#include "../about.h" const gchar *document = "" @@ -38,8 +40,9 @@ const gchar *document = "" ""; -gchar * -mq_about_marquee_response(MqApplication *application, GHashTable *query) +void +mq_about_marquee_response(MqApplication *application, GHashTable *query, + WebKitURISchemeRequest *request) { if (query && g_hash_table_lookup(query, "toggle")) { if (mq_application_marquee_mode_on(application)) { @@ -49,6 +52,6 @@ mq_about_marquee_response(MqApplication *application, GHashTable *query) } } - return g_strdup_printf(document, - "DANGER", "DO NOT PRESS"); + mq_about_response(request, g_strdup_printf(document, + "DANGER", "DO NOT PRESS")); } -- cgit v0.9.1