Interface

Gtk-3.0GtkTreeModelSignalSignatures

interface SignalSignatures {
    "row-changed": (path: Gtk.TreePath, iter: Gtk.TreeIter) => void;
    "row-deleted": (path: Gtk.TreePath) => void;
    "row-has-child-toggled": (path: Gtk.TreePath, iter: Gtk.TreeIter) => void;
    "row-inserted": (path: Gtk.TreePath, iter: Gtk.TreeIter) => void;
    "rows-reordered": (
        path: Gtk.TreePath,
        iter: Gtk.TreeIter,
        new_order: null,
    ) => void;
}

Hierarchy (View Summary)

Index
"row-changed": (path: Gtk.TreePath, iter: Gtk.TreeIter) => void

This signal is emitted when a row in the model has changed.

"row-deleted": (path: Gtk.TreePath) => void

This signal is emitted when a row has been deleted.

Note that no iterator is passed to the signal handler, since the row is already deleted.

This should be called by models after a row has been removed. The location pointed to by path should be the location that the row previously was at. It may not be a valid location anymore.

"row-has-child-toggled": (path: Gtk.TreePath, iter: Gtk.TreeIter) => void

This signal is emitted when a row has gotten the first child row or lost its last child row.

"row-inserted": (path: Gtk.TreePath, iter: Gtk.TreeIter) => void

This signal is emitted when a new row has been inserted in the model.

Note that the row may still be empty at this point, since it is a common pattern to first insert an empty row, and then fill it with the desired values.

"rows-reordered": (
    path: Gtk.TreePath,
    iter: Gtk.TreeIter,
    new_order: null,
) => void

This signal is emitted when the children of a node in the Gtk.TreeModel have been reordered.

Note that this signal is not emitted when rows are reordered by DND, since this is implemented by removing and then reinserting the row.