Gtk.SelectionModel::selection-changed
Description: Reference for signal Gtk.SelectionModel::selection-changed

### Signal

# Gtk SelectionModel::selection-changed

#### Declaration

    void
    selection_changed (
      GtkSelectionModel* self,
      guint position,
      guint n_items,
      gpointer user_data
    )

#### Description [src]

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.

Warning

Note that you have to be careful when modifying the model in signal handlers, as it may cause reentrancy problems. This is also the case when you modify base models underneath the selection model. When in doubt, defer changes to an idle.

Default handler: The default handler is called after the handlers added via `g_signal_connect()`.

#### Parameters

`position`

  Type: `guint`

  The first item that may have changed.

`n_items`

  Type: `guint`

  Number of items with changes.