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.
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 [gtk.file_chooser.FileChooser] inserts only the part of the prefix up to the next '/'.
Parameters
callback | signal 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 |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID