struct Gtk::CellRendererCombo::ChangedSignal

Overview

This signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys. Contrary to Gtk::ComboBox, Gtk::CellRendererCombo::changed is not emitted for changes made to a selected item in the entry. The argument @new_iter corresponds to the newly selected item in the combo box and it is relative to the Gtk::TreeModel set via the model property on Gtk::CellRendererCombo.

Note that as soon as you change the model displayed in the tree view, the tree view will immediately cease the editing operating. This means that you most probably want to refrain from changing the model until the combo cell renderer emits the edited or editing_canceled signal.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/cell_renderer_combo.cr

Instance Method Summary

Instance methods inherited from struct GObject::Signal

[](detail : String) : self [], name : String name

Constructor methods inherited from struct GObject::Signal

new(source : GObject::Object, detail : String? = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(String, Gtk::TreeIter, Nil)) : GObject::SignalConnection #

def connect(handler : Proc(String, Gtk::TreeIter, Nil), *, after : Bool = false) : GObject::SignalConnection #

def connect(handler : Proc(Gtk::CellRendererCombo, String, Gtk::TreeIter, Nil), *, after : Bool = false) : GObject::SignalConnection #

def emit(path_string : String, new_iter : Gtk::TreeIter) : Nil #

def name : String #
Description copied from struct GObject::Signal

The signal name