diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/schemes/about/marquee.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/schemes/about/marquee.c b/src/schemes/about/marquee.c index 4ab101f..8045291 100644 --- a/src/schemes/about/marquee.c +++ b/src/schemes/about/marquee.c @@ -26,33 +26,33 @@ #include "../about.h" #include "paths.h" -static const gchar *document = - "<!doctype html>" - "<html dir=\"%s\">" - "<head>" - "<meta charset=\"utf-8\">" - "<title>%s</title>" - "<style>" - "form {" - "text-align: center;" - "}" - "form > input[type=submit] {" - "margin: 32px;" - "padding: 16px;" - "background-color: #FF0000;" - "color: #FFFFFF;" - "font-weight: bold;" - "font-size: 64px;" - "}" - "</style>" - "</head>" - "<body>" - "<form>" - "<input type=\"submit\" name=\"toggle\"" - "value=\"%s\">" - "</form>" - "</body>" - "</html>"; +#define DOCUMENT \ + "<!doctype html>" \ + "<html dir=\"%s\">" \ + "<head>" \ + "<meta charset=\"utf-8\">" \ + "<title>%s</title>" \ + "<style>" \ + "form {" \ + "text-align: center;" \ + "}" \ + "form > input[type=submit] {" \ + "margin: 32px;" \ + "padding: 16px;" \ + "background-color: #FF0000;" \ + "color: #FFFFFF;" \ + "font-weight: bold;" \ + "font-size: 64px;" \ + "}" \ + "</style>" \ + "</head>" \ + "<body>" \ + "<form>" \ + "<input type=\"submit\" name=\"toggle\"" \ + "value=\"%s\">" \ + "</form>" \ + "</body>" \ + "</html>" void mq_about_marquee_response(MqApplication *application, GHashTable *query, @@ -66,7 +66,7 @@ mq_about_marquee_response(MqApplication *application, GHashTable *query, } mq_about_redirect(request, "mq-about:marquee"); } else { - mq_about_response(request, g_strdup_printf(document, + mq_about_response(request, g_strdup_printf(DOCUMENT, gtk_widget_get_default_direction() == GTK_TEXT_DIR_RTL ? "rtl" : "ltr", "DANGER", "DO NOT PRESS")); |