diff options
author | Dave Davenport <qball@gmpclient.org> | 2022-11-18 08:46:16 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2022-11-18 08:46:16 +0100 |
commit | c6ba962673df73ecac1dfd3b84afb36b06c38eb4 (patch) | |
tree | 3fd0bec829c3f250896fa43fd1ea2d7ad73846a7 | |
parent | 96e81d1b56b1bbc61be8ee720937dd0f0abfd4ad (diff) |
[listview] Set ellipsize mode on creation of textbox
So if rows are added, they behave correctily.
Issue: #1746
-rw-r--r-- | source/widgets/listview.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/widgets/listview.c b/source/widgets/listview.c index 52146702..fe2cb496 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -175,6 +175,7 @@ static void listview_add_widget(listview *lv, _listview_row *row, widget *wid, row->textbox = textbox_create(WIDGET(wid), WIDGET_TYPE_TEXTBOX_TEXT, "element-text", TB_AUTOHEIGHT | flags, 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) { row->index = |