Editable.connectInsertText

Connect to InsertText signal.

Emitted when text is inserted into the widget by the user.

The default handler for this signal will normally be responsible for inserting the text, so by connecting to this signal and then stopping the signal with gobject.global.signalStopEmission, it is possible to modify the inserted text, or prevent it from being inserted entirely.

interface Editable
gulong
connectInsertText
(
T
)
(,
Flag!"After" after = No.After
)

Parameters

callback T

signal callback delegate or function to connect

void callback(string text, ref int position, gtk.editable.Editable editable)

text the new text to insert (optional)

position the position, in characters, at which to insert the new text. this is an in-out parameter. After the signal emission is finished, it should point after the newly inserted text. (optional)

editable the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: gulong

Signal ID