diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-29 18:38:08 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-29 18:38:08 (EDT) |
commit | 0f9d3db327b59f28f7fea5b060cbbbf7e4b87ea7 (patch) | |
tree | afc6ff48df29eed1064f1892249be1a4c701c682 | |
parent | d6db5773d73f194f29d746bc9f040f9555786de9 (diff) | |
download | marquee-0f9d3db327b59f28f7fea5b060cbbbf7e4b87ea7.zip marquee-0f9d3db327b59f28f7fea5b060cbbbf7e4b87ea7.tar.gz marquee-0f9d3db327b59f28f7fea5b060cbbbf7e4b87ea7.tar.bz2 |
about:marquee: Support RTL text in HTML
-rw-r--r-- | src/about/marquee.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/about/marquee.c b/src/about/marquee.c index ce8beea..8fd2c41 100644 --- a/src/about/marquee.c +++ b/src/about/marquee.c @@ -28,7 +28,7 @@ const gchar *document = "<!doctype html>" - "<html>" + "<html dir=\"%s\">" "<head>" "<title>%s</title>" "</head>" @@ -53,6 +53,8 @@ mq_about_marquee_response(MqApplication *application, GHashTable *query, mq_about_redirect(request, "mq-about:marquee"); } else { mq_about_response(request, g_strdup_printf(document, - "DANGER", "DO NOT PRESS")); + gtk_widget_get_default_direction() == + GTK_TEXT_DIR_RTL ? "rtl" : "ltr", + "DANGER", "DO NOT PRESS")); } } |