struct Gtk::FileChooserWidget::QuickBookmarkSignal

Overview

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 Alt-1, Alt-2, etc. until Alt-0. Note that in the default binding, that Alt-1 is actually defined to switch to the bookmark at index 0, and so on successively.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/file_chooser_widget.cr

Instance Method Summary

Instance methods inherited from struct GObject::Signal

[](detail : String) : self [], name : String name

Constructor methods inherited from struct GObject::Signal

new(source : GObject::Object, detail : Nil | String = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(Int32, Nil)) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Int32, Nil), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gtk::FileChooserWidget, Int32, Nil), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def emit(bookmark_index : Int32) : Nil #

[View source]
def name : String #
Description copied from struct GObject::Signal

The signal name


[View source]