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.
parent-instanceDetermines 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).
The child widget.
Its value is a <GtkWidget>, or #f.
Set it with (set! (list-box-row:child self) value).
Determines whether this row can be selected.
Its value is a boolean.
Set it with (set! (list-box-row:selectable self) value).
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.
Passed: a <GtkListBoxRow>.
Gets whether the row is activatable.
Passed: a <GtkListBoxRow>.
Returned: a boolean.
#t if the row is activatable
Gets the child widget of self.
Passed: a <GtkListBoxRow>.
Returned: a <GtkWidget>, or #f.
the child widget of self
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.
Passed: a <GtkListBoxRow>.
Returned: a <GtkWidget>, or #f.
the current header
Gets the current index of the self in its
<GtkListBox> container.
Passed: a <GtkListBoxRow>.
Returned: a 32-bit integer.
the index of the self, or -1 if the self is not in a listbox
Gets whether the row can be selected.
Passed: a <GtkListBoxRow>.
Returned: a boolean.
#t if the row is selectable
Returns whether the child is currently selected in its
<GtkListBox> container.
Passed: a <GtkListBoxRow>.
Returned: a boolean.
#t if self is selected
Creates a new <GtkListBoxRow>.
Returned: a <GtkWidget>.
a new <GtkListBoxRow>
Set whether the row is activatable.
Passed: a <GtkListBoxRow>.
Passed: a boolean.
#t to mark the row as activatable
Sets the child widget of self.
Passed: a <GtkListBoxRow>.
Passed, or left out: a <GtkWidget>, or #f.
the child widget
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.
Passed: a <GtkListBoxRow>.
Passed, or left out: a <GtkWidget>, or #f.
the header
Set whether the row can be selected.
Passed: a <GtkListBoxRow>.
Passed: a boolean.
#t to mark the row as selectable
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>.
Passed: a <GtkListBoxRow>.
To override it in a new class, give register-type #:vfuncs
`((activate . ,procedure)). The procedure is called as
(procedure self).
Passed: the class whose implementation to call:
<GtkListBoxRow>, or a class that derives from
it, or its GType number.
Passed: a <GtkListBoxRow>.