1.112 <GtkListBoxRow>

Class: <GtkListBoxRow>

It derives from <GtkWidget>.

The kind of widget that can be added to a <GtkListBox>.

<GtkListBox> will automatically wrap its children in a GtkListboxRow when necessary.

Fields

parent-instance

Properties

Property: list-box-row:activatable self

Determines whether the ::row-activated signal will be emitted for this row.

Its value is a boolean.

Set it with (set! (list-box-row:activatable self) value).

Property: list-box-row:child self

The child widget.

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

Set it with (set! (list-box-row:child self) value).

Property: list-box-row:selectable self

Determines whether this row can be selected.

Its value is a boolean.

Set it with (set! (list-box-row:selectable self) value).

Procedures

Method: list-box-row:changed self
Method: changed self

Marks self 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 is mirroring some external data set, and two rows changed in the external data set then when you call list-box-row:changed 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 don’t fully control the data model you have to duplicate the data that affects the listbox row functions into the row widgets themselves. Another alternative is to call list-box:invalidate-sort on any model change, but that is more expensive.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

Method: list-box-row:get-activatable? self ⇒ %return
Method: get-activatable? self ⇒ %return

Gets whether the row is activatable.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

%return

Returned: a boolean.

#t if the row is activatable

Method: list-box-row:get-child self ⇒ %return
Method: get-child self ⇒ %return

Gets the child widget of self.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

%return

Returned: a <GtkWidget>, or #f.

the child widget of self

Method: list-box-row:get-header self ⇒ %return
Method: get-header self ⇒ %return

Returns the current header of the self.

This can be used in a GtkListBoxUpdateHeaderFunc to see if there is a header set already, and if so to update the state of it.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

%return

Returned: a <GtkWidget>, or #f.

the current header

Method: list-box-row:get-index self ⇒ %return
Method: get-index self ⇒ %return

Gets the current index of the self in its <GtkListBox> container.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

%return

Returned: a 32-bit integer.

the index of the self, or -1 if the self is not in a listbox

Method: list-box-row:get-selectable? self ⇒ %return
Method: get-selectable? self ⇒ %return

Gets whether the row can be selected.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

%return

Returned: a boolean.

#t if the row is selectable

Method: list-box-row:is-selected? self ⇒ %return
Method: is-selected? self ⇒ %return

Returns whether the child is currently selected in its <GtkListBox> container.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

%return

Returned: a boolean.

#t if self is selected

Procedure: list-box-row:new ⇒ %return

Creates a new <GtkListBoxRow>.

%return

Returned: a <GtkWidget>.

a new <GtkListBoxRow>

Method: list-box-row:set-activatable self activatable
Method: set-activatable self activatable

Set whether the row is activatable.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

activatable

Passed: a boolean.

#t to mark the row as activatable

Method: list-box-row:set-child self [child]
Method: set-child self [child]

Sets the child widget of self.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

child

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

the child widget

Method: list-box-row:set-header self [header]
Method: set-header self [header]

Sets the current header of the self.

This is only allowed to be called from a GtkListBoxUpdateHeaderFunc. It will replace any existing header in the row, and be shown in front of the row in the listbox.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

header

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

the header

Method: list-box-row:set-selectable self selectable
Method: set-selectable self selectable

Set whether the row can be selected.

self

Passed: a <GtkListBoxRow>.

a <GtkListBoxRow>

selectable

Passed: a boolean.

#t to mark the row as selectable

Signals

Signal: list-box-row:activate

Connect a handler with (connect object list-box-row:activate handler). It is called as (handler self).

This is a keybinding signal, which will cause this row to be activated.

If you want to be notified when the user activates a row (by key or not), use the list-box:row-activated signal on the row’s parent <GtkListBox>.

self

Passed: a <GtkListBoxRow>.

Virtual methods

Virtual method: list-box-row:do-activate implementor self

To override it in a new class, give register-type #:vfuncs `((activate . ,procedure)). The procedure is called as (procedure self).

implementor

Passed: the class whose implementation to call: <GtkListBoxRow>, or a class that derives from it, or its GType number.

self

Passed: a <GtkListBoxRow>.