Fix to pointless or's.

This commit is contained in:
Dave Davenport 2023-03-26 23:37:44 +02:00
parent e6af09a52c
commit c1f63350f4
2 changed files with 2 additions and 3 deletions

View File

@ -168,14 +168,13 @@ static void listview_set_state(_listview_row r, TextBoxFontType tbft) {
}
static void listview_add_widget(listview *lv, _listview_row *row, widget *wid,
const char *label) {
TextboxFlags flags = 0;
if (strcasecmp(label, "element-icon") == 0) {
row->icon = icon_create(WIDGET(wid), "element-icon");
box_add((box *)wid, WIDGET(row->icon), FALSE);
} else if (strcasecmp(label, "element-text") == 0) {
row->textbox =
textbox_create(WIDGET(wid), WIDGET_TYPE_TEXTBOX_TEXT, "element-text",
TB_AUTOHEIGHT | flags, NORMAL, "DDD", 0, 0);
TB_AUTOHEIGHT , NORMAL, "DDD", 0, 0);
textbox_set_ellipsize(row->textbox, lv->emode);
box_add((box *)wid, WIDGET(row->textbox), TRUE);
} else if (strcasecmp(label, "element-index") == 0) {

View File

@ -357,7 +357,7 @@ static XrmOption xrmOptions[] = {
{.str = &config.theme},
NULL,
"New style theme file",
CONFIG_DEFAULT | CONFIG_NO_DISPLAY},
CONFIG_NO_DISPLAY},
{xrm_Number,
"max-history-size",
{.num = &config.max_history_size},