Interface

Gtk-4.0GtkCellRendererSignalSignatures

interface SignalSignatures {
    "editing-canceled": () => void;
    "editing-started": (arg0: Gtk.CellEditable, arg1: string) => void;
    notify: (arg0: GObject.ParamSpec) => void;
    "notify::cell-background": (pspec: GObject.ParamSpec) => void;
    "notify::cell-background-rgba": (pspec: GObject.ParamSpec) => void;
    "notify::cell-background-set": (pspec: GObject.ParamSpec) => void;
    "notify::editing": (pspec: GObject.ParamSpec) => void;
    "notify::height": (pspec: GObject.ParamSpec) => void;
    "notify::is-expanded": (pspec: GObject.ParamSpec) => void;
    "notify::is-expander": (pspec: GObject.ParamSpec) => void;
    "notify::mode": (pspec: GObject.ParamSpec) => void;
    "notify::sensitive": (pspec: GObject.ParamSpec) => void;
    "notify::visible": (pspec: GObject.ParamSpec) => void;
    "notify::width": (pspec: GObject.ParamSpec) => void;
    "notify::xalign": (pspec: GObject.ParamSpec) => void;
    "notify::xpad": (pspec: GObject.ParamSpec) => void;
    "notify::yalign": (pspec: GObject.ParamSpec) => void;
    "notify::ypad": (pspec: GObject.ParamSpec) => void;
}

Hierarchy (View Summary)

Index

Properties

"editing-canceled": () => void

This signal gets emitted when the user cancels the process of editing a cell. For example, an editable cell renderer could be written to cancel editing when the user presses Escape.

See also: gtk_cell_renderer_stop_editing().

"editing-started": (arg0: Gtk.CellEditable, arg1: string) => void

This signal gets emitted when a cell starts to be edited. The intended use of this signal is to do special setup on editable, e.g. adding a Gtk.EntryCompletion or setting up additional columns in a Gtk.ComboBox.

See gtk_cell_editable_start_editing() for information on the lifecycle of the editable and a way to do setup that doesn’t depend on the renderer.

Note that GTK doesn't guarantee that cell renderers will continue to use the same kind of widget for editing in future releases, therefore you should check the type of editable before doing any specific setup, as in the following example:

static void
text_editing_started (GtkCellRenderer *cell,
GtkCellEditable *editable,
const char *path,
gpointer data)
{
if (GTK_IS_ENTRY (editable))
{
GtkEntry *entry = GTK_ENTRY (editable);

// ... create a GtkEntryCompletion

gtk_entry_set_completion (entry, completion);
}
}
"notify::cell-background": (pspec: GObject.ParamSpec) => void
"notify::cell-background-rgba": (pspec: GObject.ParamSpec) => void
"notify::cell-background-set": (pspec: GObject.ParamSpec) => void
"notify::editing": (pspec: GObject.ParamSpec) => void
"notify::height": (pspec: GObject.ParamSpec) => void
"notify::is-expanded": (pspec: GObject.ParamSpec) => void
"notify::is-expander": (pspec: GObject.ParamSpec) => void
"notify::mode": (pspec: GObject.ParamSpec) => void
"notify::sensitive": (pspec: GObject.ParamSpec) => void
"notify::visible": (pspec: GObject.ParamSpec) => void
"notify::width": (pspec: GObject.ParamSpec) => void
"notify::xalign": (pspec: GObject.ParamSpec) => void
"notify::xpad": (pspec: GObject.ParamSpec) => void
"notify::yalign": (pspec: GObject.ParamSpec) => void
"notify::ypad": (pspec: GObject.ParamSpec) => void

Properties - Inherited from GObject

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.