FileChooserWidget.connectQuickBookmark
gulong connectQuickBookmark(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.file_chooser_widget.FileChooserWidget)))
&& Parameters!T.length < 3)Connect to QuickBookmark signal.
Emitted when the user asks for it.
This is a keybinding signal.
This is used to make the file chooser switch to the bookmark specified in the bookmark_index parameter. For example, if you have three bookmarks, you can pass 0, 1, 2 to this signal to switch to each of them, respectively.
The default binding for this signal is <kbd>Alt</kbd>-<kbd>1</kbd>,
<kbd>Alt</kbd>-<kbd>2</kbd>, etc. until <kbd>Alt</kbd>-<kbd>0</kbd>.Note that in the default binding, that <kbd>Alt</kbd>-<kbd>1</kbd> is actually defined to switch to the bookmark at index 0, and so on successively.
Parameters
callback | signal callback delegate or function to connect void callback(int bookmarkIndex, gtk.file_chooser_widget.FileChooserWidget fileChooserWidget) bookmarkIndex the number of the bookmark to switch to (optional) fileChooserWidget the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID