From 9dd54ac6c65c9716d81b1459aee1c2adc300e06f Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 19 Jan 2021 23:52:25 +0100 Subject: [Textbox] Allow markup to be disabled in theme. Change textbox for message from textbox to message-textbox. Issue: #1255 --- source/widgets/textbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c index f595238c..a5112755 100644 --- a/source/widgets/textbox.c +++ b/source/widgets/textbox.c @@ -188,8 +188,10 @@ textbox* textbox_create ( widget *parent, WidgetType type, const char *name, Tex } // Allow overriding of markup. - if ( rofi_theme_get_boolean ( WIDGET ( tb ), "markup", FALSE) ) { + if ( rofi_theme_get_boolean ( WIDGET ( tb ), "markup", (tb->flags&TB_MARKUP) == TB_MARKUP ) ) { tb->flags |= TB_MARKUP; + } else { + tb->flags &= (~TB_MARKUP); } const char *txt = rofi_theme_get_string ( WIDGET ( tb ), "str", text ); -- cgit v1.2.3