// Generated by PorticoGen. DO NOT EDIT. See Sources/PorticoGen to make changes. import Adw import Gtk import Gio import Gdk // PorticoGen: generateModifierExtension | source: Gtk.CellEditable /// Modifiers for `Gtk.CellEditable`, available on every Portico view whose /// backing widget is `Gtk.CellEditable` or one of its subclasses. extension WidgetView where Target: Gtk.CellEditable { // PorticoGen: generateModifierExtension -> generateSignalModifier | source: Gtk.CellEditable.connectEditingDone(_:) /// This signal is a sign for the cell renderer to update its /// value from the `cell_editable`. /// /// Implementations of `GtkCellEditable` are responsible for /// emitting this signal when they are done editing, e.g. /// `GtkEntry` emits this signal when the user presses Enter. Typical things to /// do in a handler for ::editing-done are to capture the edited value, /// disconnect the `cell_editable` from signals on the `GtkCellRenderer`, etc. /// /// gtk_cell_editable_editing_done() is a convenience method /// for emitting `GtkCellEditable::editing-done`. /// /// - Parameter handler: Invoked when the widget emits the `editing-done` signal. /// - Returns: A copy of this view with the modifier applied. public func onEditingDone(_ handler: @escaping () -> Void) -> Self { appending { w, ctx in ctx.registry.add(w.connectEditingDone { _ in handler() }) } } // PorticoGen: generateModifierExtension -> generateSignalModifier | source: Gtk.CellEditable.connectRemoveWidget(_:) /// This signal is meant to indicate that the cell is finished /// editing, and the `cell_editable` widget is being removed and may /// subsequently be destroyed. /// /// Implementations of `GtkCellEditable` are responsible for /// emitting this signal when they are done editing. It must /// be emitted after the `GtkCellEditable::editing-done` signal, /// to give the cell renderer a chance to update the cell's value /// before the widget is removed. /// /// gtk_cell_editable_remove_widget() is a convenience method /// for emitting `GtkCellEditable::remove-widget`. /// /// - Parameter handler: Invoked when the widget emits the `remove-widget` signal. /// - Returns: A copy of this view with the modifier applied. public func onRemoveWidget(_ handler: @escaping () -> Void) -> Self { appending { w, ctx in ctx.registry.add(w.connectRemoveWidget { _ in handler() }) } } }