Gtk.Widget.SetAccelPath Method
Given an accelerator group, accel_group, and an accelerator path, accel_path, sets up an accelerator in accel_group so whenever the key binding that is defined for accel_path is pressed, widget will be activated.

Syntax

public void SetAccelPath (string accel_path, AccelGroup accel_group)

Parameters

accel_path
Path used to look up the the accelerator.
accel_group
A Gtk.AccelGroup.

Remarks

This removes any accelerators (for any accelerator group) installed by previous calls to Widget.SetAccelPath. Associating accelerators with paths allows them to be modified by the user and the modifications to be saved for future use.

This is a low level method that would most likely be used by a menu creation system like Gtk.ItemFactory. If you use Gtk.ItemFactory, setting up accelerator paths will be done automatically.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)