[Textbox] Allow markup to be disabled in theme.

Change textbox for message from textbox to message-textbox.

Issue: #1255
This commit is contained in:
Dave Davenport 2021-01-19 23:52:25 +01:00 committed by Dave Davenport
parent f82fd85576
commit 313ba43741
1 changed files with 3 additions and 1 deletions

View File

@ -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 );