Interface

Gtk-4.0GtkSignalListItemFactorySignalSignatures

interface SignalSignatures {
    bind: (arg0: GObject.Object) => void;
    notify: (arg0: GObject.ParamSpec) => void;
    setup: (arg0: GObject.Object) => void;
    teardown: (arg0: GObject.Object) => void;
    unbind: (arg0: GObject.Object) => void;
}

Hierarchy (View Summary)

Index

Properties

Properties - Inherited from Gtk.ListItemFactory.SignalSignatures

Properties

bind: (arg0: GObject.Object) => void

Emitted when an object has been bound to an item.

The handler for this signal must set to populate the listitem with widgets.

After this signal was emitted, the object might be shown in a Gtk.ListView or other widget.

The Gtk.SignalListItemFactory::unbind signal is the opposite of this signal and can be used to undo everything done in this signal.

setup: (arg0: GObject.Object) => void

Emitted when a newly created listitem needs to be prepared for use.

It is the first signal emitted for every listitem.

The handler for this signal must call Gtk.ListItem.set_child to populate the listitem with widgets.

The Gtk.SignalListItemFactory::teardown signal is the opposite of this signal and can be used to undo everything done in this signal.

teardown: (arg0: GObject.Object) => void

Emitted when an object is about to be destroyed.

It is the last signal ever emitted for this object.

This signal is the opposite of the Gtk.SignalListItemFactory::setup signal and should be used to undo everything done in that signal.

unbind: (arg0: GObject.Object) => void

Emitted when an object has been unbound from its item.

This happens for example when a listitem was removed from use in a list widget and its Gtk.ListItem.item is about to be unset.

This signal is the opposite of the Gtk.SignalListItemFactory::bind signal and should be used to undo everything done in that signal.

Properties - Inherited from Gtk.ListItemFactory.SignalSignatures

notify: (arg0: GObject.ParamSpec) => void

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with GObject.ParamFlags.EXPLICIT_NOTIFY, then any call to g_object_set_property() results in ::notify being emitted, even if the new value is the same as the old. If they did pass GObject.ParamFlags.EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

g_signal_connect (text_view->buffer, "notify::paste-target-list",
G_CALLBACK (gtk_text_view_target_list_notify),
text_view)

It is important to note that you must use [canonical parameter names][class@GObject.ParamSpec#parameter-names] as detail strings for the notify signal.