mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -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:
parent
e9ff354312
commit
9dd54ac6c6
1 changed files with 3 additions and 1 deletions
|
@ -188,8 +188,10 @@ textbox* textbox_create ( widget *parent, WidgetType type, const char *name, Tex
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allow overriding of markup.
|
// 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;
|
tb->flags |= TB_MARKUP;
|
||||||
|
} else {
|
||||||
|
tb->flags &= (~TB_MARKUP);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *txt = rofi_theme_get_string ( WIDGET ( tb ), "str", text );
|
const char *txt = rofi_theme_get_string ( WIDGET ( tb ), "str", text );
|
||||||
|
|
Loading…
Reference in a new issue