gtkMenuItemSetAccelPath {RGtk2}R Documentation

gtkMenuItemSetAccelPath

Description

Set the accelerator path on menu.item, through which runtime changes of the menu item's accelerator caused by the user can be identified and saved to persistant storage (see gtkAccelMapSave on this). To setup a default accelerator for this menu item, call gtkAccelMapAddEntry with the same accel.path. See also gtkAccelMapAddEntry on the specifics of accelerator paths, and gtkMenuSetAccelPath for a more convenient variant of this function.

Usage

gtkMenuItemSetAccelPath(object, accel.path)

Arguments

object [GtkMenuItem] a valid GtkMenuItem
accel.path [character] accelerator path, corresponding to this menu item's functionality, or NULL to unset the current path.

Details

This function is basically a convenience wrapper that handles calling gtkWidgetSetAccelPath with the appropriate accelerator group for the menu item.

Note that you do need to set an accelerator on the parent menu with gtkMenuSetAccelGroup for this to work.

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]