1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

[listview] Set ellipsize mode on creation of textbox

So if rows are added, they behave correctily.

Issue: #1746
This commit is contained in:
Dave Davenport 2022-11-18 08:46:16 +01:00
parent 96e81d1b56
commit c6ba962673

View file

@ -175,6 +175,7 @@ static void listview_add_widget(listview *lv, _listview_row *row, widget *wid,
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 | flags, NORMAL, "DDD", 0, 0);
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) {
row->index = row->index =