Gtk.AccelGroup.prototype.connect_by_path
function connect_by_path(accel_path:String, closure:GObject.Closure):void { // Gjs wrapper for gtk_accel_group_connect_by_path() }
Installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see Gtk.add_entry). When accel_group is being activated in response to a call to accel_groups_activate, closure will be invoked if the @accel_key and @accel_mods from accel_groups_activate match the key and modifiers for the path.
The signature used for the closure is that of Gtk.AccelGroupActivate.
Note that accel_path string will be stored in a GLib.Quark. Therefore, if you pass a static string, you can save some memory by interning it first with GLib.intern_static_string.
- accel_path
path used for determining key and modifiers
- closure
closure to be executed upon accelerator activation