From 0f9d3db327b59f28f7fea5b060cbbbf7e4b87ea7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 29 Sep 2017 18:38:08 -0400 Subject: about:marquee: Support RTL text in HTML --- (limited to 'src') 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 = "" - "" + "" "" "%s" "" @@ -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")); } } -- cgit v0.9.1