GtkWidget::lock_accelerators

void lock_accelerators(void);

lock_accelerators() locks any accelerators defined on the calling widget - usually a GtkMenuItem - so that no further keys can be entered or existing keys removed or altered.

Note that if you do not lock your accelerators the end user will be able to define their own, whether any exist on that widget or not.

See also: unlock_accelerators() , accelerators_locked()