1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[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
parent e9ff354312
commit 9dd54ac6c6

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