mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
[Textbox] Correctly fall back to content when str is empty.
This commit is contained in:
parent
b4b85b2a71
commit
25402f44eb
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ textbox* textbox_create ( widget *parent, WidgetType type, const char *name, Tex
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *txt = rofi_theme_get_string ( WIDGET ( tb ), "str", text );
|
const char *txt = rofi_theme_get_string ( WIDGET ( tb ), "str", text );
|
||||||
if ( !txt ){
|
if ( txt == NULL || (*txt) == '\0' ){
|
||||||
txt = rofi_theme_get_string ( WIDGET ( tb ), "content", text );
|
txt = rofi_theme_get_string ( WIDGET ( tb ), "content", text );
|
||||||
}
|
}
|
||||||
const char *placeholder = rofi_theme_get_string ( WIDGET(tb), "placeholder", NULL);
|
const char *placeholder = rofi_theme_get_string ( WIDGET(tb), "placeholder", NULL);
|
||||||
|
|
Loading…
Reference in a new issue