SelectionModel.connectSelectionChanged

Connect to SelectionChanged signal.

Emitted when the selection state of some of the items in model changes.

Note that this signal does not specify the new selection state of the items, they need to be queried manually. It is also not necessary for a model to change the selection state of any of the items in the selection model, though it would be rather useless to emit such a signal.

interface SelectionModel
ulong
connectSelectionChanged
(
T
)
(,
Flag!"After" after = No.After
)

Parameters

callback T

signal callback delegate or function to connect

void callback(uint position, uint nItems, gtk.selection_model.SelectionModel selectionModel)

position The first item that may have changed (optional)

nItems number of items with changes (optional)

selectionModel the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID