diff options
author | Dave Davenport <qball@gmpclient.org> | 2021-01-19 23:52:25 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2021-01-19 23:55:07 +0100 |
commit | 9dd54ac6c65c9716d81b1459aee1c2adc300e06f (patch) | |
tree | a15f1a6fe5463d9e8cded1232eaeeb16cec09c2f | |
parent | e9ff35431267080859109a124f7463c3ca48a7eb (diff) |
[Textbox] Allow markup to be disabled in theme.
Change textbox for message from textbox to message-textbox.
Issue: #1255
-rw-r--r-- | source/widgets/textbox.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 ); |