summaryrefslogtreecommitdiffstats
path: root/source/widgets/textbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/widgets/textbox.c')
-rw-r--r--source/widgets/textbox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c
index a581c529..624549ed 100644
--- a/source/widgets/textbox.c
+++ b/source/widgets/textbox.c
@@ -154,7 +154,9 @@ textbox* textbox_create ( const char *name, TextboxFlags flags, TextBoxFontType
if ( ( flags & TB_WRAP ) == TB_WRAP ) {
pango_layout_set_wrap ( tb->layout, PANGO_WRAP_WORD_CHAR );
}
- textbox_text ( tb, text ? text : "" );
+
+ const char *txt = rofi_theme_get_string ( WIDGET ( tb ), "str", text);
+ textbox_text ( tb, txt? txt: "" );
textbox_cursor_end ( tb );
// auto height/width modes get handled here