EntryCompletion.connectInsertPrefix

gulong connectInsertPrefix(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.entry_completion.EntryCompletion))) && Parameters!T.length < 3)

Connect to InsertPrefix signal.

Gets emitted when the inline autocompletion is triggered. The default behaviour is to make the entry display the whole prefix and select the newly inserted part.

Applications may connect to this signal in order to insert only a smaller part of the prefix into the entry - e.g. the entry used in the #GtkFileChooser inserts only the part of the prefix up to the next '/'.

Parameters

callbacksignal callback delegate or function to connect bool callback(string prefix, gtk.entry_completion.EntryCompletion entryCompletion) prefix the common prefix of all possible completions (optional) entryCompletion the instance the signal is connected to (optional) Returns true if the signal has been handled
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID