Package: gtk

Function gtk-list-box-row-changed

Lambda List

gtk-list-box-row-changed (row)

Arguments

row -- a gtk-list-box-row widget

Details

Marks row as changed, causing any state that depends on this to be updated. This affects sorting, filtering and headers.

Note that calls to this method must be in sync with the data used for the row functions. For instance, if the list box is mirroring some external data set, and *two* rows changed in the external data set then when you call the gtk-list-box-row-changed function on the first row the sort function must only read the new data for the first of the two changed rows, otherwise the resorting of the rows will be wrong.

This generally means that if you do not fully control the data model you have to duplicate the data that affects the list box row functions into the row widgets themselves. Another alternative is to call the gtk-list-box-invalidate-sort function on any model change, but that is more expensive.
 

See also

2021-11-15