Method

GtkMenuset_accel_group

Declaration [src]

void
gtk_menu_set_accel_group (
  GtkMenu* menu,
  GtkAccelGroup* accel_group
)

Description [src]

Set the GtkAccelGroup which holds global accelerators for the menu. This accelerator group needs to also be added to all windows that this menu is being used in with gtk_window_add_accel_group(), in order for those windows to support all the accelerators contained in this group.

Sets propertyGtk.Menu:accel-group

Parameters

accel_group GtkAccelGroup
 

The GtkAccelGroup to be associated with the menu.

 The argument can be NULL.
 The data is owned by the caller of the function.