diff options
author | Dave Davenport <qball@gmpclient.org> | 2023-03-26 23:37:44 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2023-03-26 23:37:44 +0200 |
commit | c1f63350f481cd8929137a56b14bdf94f9fadb6f (patch) | |
tree | 51728bc08b9d1090dfacbcaf82d9746ee80f79db | |
parent | e6af09a52c52a2c69ad09f51998c494924771e85 (diff) |
Fix to pointless or's.
-rw-r--r-- | source/widgets/listview.c | 3 | ||||
-rw-r--r-- | source/xrmoptions.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/source/widgets/listview.c b/source/widgets/listview.c index 05f6f273..09a8e542 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -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) { diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 319b899f..34d2fff5 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -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}, |