struct Gtk::CellRenderer::EditingStartedSignal
- Gtk::CellRenderer::EditingStartedSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
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 (Gtk::CellRenderer *cell, Gtk::CellEditable *editable, const char *path, gpointer data) { if (GTK_IS_ENTRY (editable)) { Gtk::Entry *entry = GTK_ENTRY (editable);
// ... create a Gtk::EntryCompletion
gtk_entry_set_completion (entry, completion);
}
} ]|
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/cell_renderer.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Gtk::CellEditable, String, Nil)) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::CellEditable, String, Nil), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::CellRenderer, Gtk::CellEditable, String, Nil), *, after : Bool = false) : GObject::SignalConnection
- #emit(editable : Gtk::CellEditable, path : String) : Nil
-
#name : String
The signal name