1.131 <GtkNoSelection>

Class: <GtkNoSelection>

It derives from <GObject>.

A selection model that does not allow selecting anything.

This model is meant to be used as a simple wrapper around a <GListModel> when a <GtkSelectionModel> is required.

<GtkNoSelection> passes through sections from the underlying model.

Properties

Property: no-selection:item-type self

The type of items. See list-model:get-item-type.

Its value is a class, or a GType number.

It is read only.

Property: no-selection:model self

The model being managed.

Its value is a <GListModel>, or #f.

Set it with (set! (no-selection:model self) value).

Property: no-selection:n-items self

The number of items. See list-model:get-n-items.

Its value is an unsigned 32-bit integer.

It is read only.

Procedures

Method: no-selection:get-model self ⇒ %return
Method: get-model self ⇒ %return

Gets the model that self is wrapping.

self

Passed: a <GtkNoSelection>.

a <GtkNoSelection>

%return

Returned: a <GListModel>, or #f.

The model being wrapped

Procedure: no-selection:new [model] ⇒ %return

Creates a new selection to handle model.

model

Passed, or left out: a <GListModel>, or #f.

the <GListModel> to manage

%return

Returned: a <GtkNoSelection>.

a new <GtkNoSelection>

Method: no-selection:set-model self [model]
Method: set-model self [model]

Sets the model that self should wrap.

If model is #f, this model will be empty.

self

Passed: a <GtkNoSelection>.

a <GtkNoSelection>

model

Passed, or left out: a <GListModel>, or #f.

A <GListModel> to wrap