For instance, the path in the testgtk application for the menu
File->Open would be
Generally, the path need to be set explicitely for an item, through a
call to Gtk.Menu_Item.Set_Accel_Path or
Gtk.Widget.Set_Accel_Path. However, if the widget is created
automatically through a Gtk.Item_Factory, this is done automatically.
It is better to use this function instead of Add_Accelerator, since when
the accelerators are changed interactively by the user, the new value
will be shown properly in the menu, which wouldn't happen if they had
been forced by Add_Accelerator.
Locking an accelerator path prevents its accelerator from being changed during runtime. A locked accelerator path can be unlocked by Unlock_Path. Refer to Change_Entry for information about runtime accelerator changes.
If called more than once, Accel_Path remains locked until Unlock_Path has been called an equivalent number of times.
Note that locking of individual accelerator paths is independent from locking the Gtk_Accel_Group containing them. For runtime accelerator changes to be possible both the accelerator path and its accel group have to be unlocked.