AccelGroup.connectByPath
void connectByPath(string accelPath, gobject.closure.Closure closure)Installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see gtk.accel_map.AccelMap.addEntry). When accel_group is being activated in response to a call to gtk.global.accelGroupsActivate, closure will be invoked if the accel_key and accel_mods from gtk.global.accelGroupsActivate match the key and modifiers for the path.
The signature used for the closure is that of #GtkAccelGroupActivate.
Note that accel_path string will be stored in a #GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with glib.global.internStaticString.
Parameters
accelPath | path used for determining key and modifiers |
closure | closure to be executed upon accelerator activation |