From b70772372ef51a64dece064aaa0e25e0a83354fd Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Fri, 24 Jun 2022 16:48:15 +0100 Subject: Horizontal mode fixes. Implement horizontal mode for Pango, and add min-input-width option. --- src/config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 2239b31..400c73f 100644 --- a/src/config.c +++ b/src/config.c @@ -253,6 +253,8 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const tofi->window.entry.border.outline_color = parse_color(filename, lineno, value, &err); } else if (strcasecmp(option, "prompt-text") == 0) { snprintf(tofi->window.entry.prompt_text, N_ELEM(tofi->window.entry.prompt_text), "%s", value); + } else if (strcasecmp(option, "min-input-width") == 0) { + tofi->window.entry.input_width = parse_uint32(filename, lineno, value, &err); } else if (strcasecmp(option, "result-padding") == 0) { tofi->window.entry.result_padding = parse_int32(filename, lineno, value, &err); } else if (strcasecmp(option, "border-width") == 0) { -- cgit v1.2.3