mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Fix to pointless or's.
This commit is contained in:
parent
e6af09a52c
commit
c1f63350f4
2 changed files with 2 additions and 3 deletions
|
@ -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,
|
static void listview_add_widget(listview *lv, _listview_row *row, widget *wid,
|
||||||
const char *label) {
|
const char *label) {
|
||||||
TextboxFlags flags = 0;
|
|
||||||
if (strcasecmp(label, "element-icon") == 0) {
|
if (strcasecmp(label, "element-icon") == 0) {
|
||||||
row->icon = icon_create(WIDGET(wid), "element-icon");
|
row->icon = icon_create(WIDGET(wid), "element-icon");
|
||||||
box_add((box *)wid, WIDGET(row->icon), FALSE);
|
box_add((box *)wid, WIDGET(row->icon), FALSE);
|
||||||
} else if (strcasecmp(label, "element-text") == 0) {
|
} else if (strcasecmp(label, "element-text") == 0) {
|
||||||
row->textbox =
|
row->textbox =
|
||||||
textbox_create(WIDGET(wid), WIDGET_TYPE_TEXTBOX_TEXT, "element-text",
|
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);
|
textbox_set_ellipsize(row->textbox, lv->emode);
|
||||||
box_add((box *)wid, WIDGET(row->textbox), TRUE);
|
box_add((box *)wid, WIDGET(row->textbox), TRUE);
|
||||||
} else if (strcasecmp(label, "element-index") == 0) {
|
} else if (strcasecmp(label, "element-index") == 0) {
|
||||||
|
|
|
@ -357,7 +357,7 @@ static XrmOption xrmOptions[] = {
|
||||||
{.str = &config.theme},
|
{.str = &config.theme},
|
||||||
NULL,
|
NULL,
|
||||||
"New style theme file",
|
"New style theme file",
|
||||||
CONFIG_DEFAULT | CONFIG_NO_DISPLAY},
|
CONFIG_NO_DISPLAY},
|
||||||
{xrm_Number,
|
{xrm_Number,
|
||||||
"max-history-size",
|
"max-history-size",
|
||||||
{.num = &config.max_history_size},
|
{.num = &config.max_history_size},
|
||||||
|
|
Loading…
Reference in a new issue