summaryrefslogtreecommitdiffstats
path: root/source/widgets
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2020-01-02 16:37:24 +0100
committerDave Davenport <qball@gmpclient.org>2020-01-02 16:37:24 +0100
commit25402f44eb56f745628aea511efef2b628b52009 (patch)
tree0fe8f51b232959ab7a996549f73b3cad50da89bb /source/widgets
parentb4b85b2a715fa2a618b492103968efe6176054c4 (diff)
[Textbox] Correctly fall back to content when str is empty.
Diffstat (limited to 'source/widgets')
-rw-r--r--source/widgets/textbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c
index 2d8be530..d2135392 100644
--- a/source/widgets/textbox.c
+++ b/source/widgets/textbox.c
@@ -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 );
- if ( !txt ){
+ if ( txt == NULL || (*txt) == '\0' ){
txt = rofi_theme_get_string ( WIDGET ( tb ), "content", text );
}
const char *placeholder = rofi_theme_get_string ( WIDGET(tb), "placeholder", NULL);