Method

GtkImageMenuItemset_accel_group

deprecated: 3.10 since: 2.16

Declaration [src]

void
gtk_image_menu_item_set_accel_group (
  GtkImageMenuItem* image_menu_item,
  GtkAccelGroup* accel_group
)

Description [src]

Specifies an accel_group to add the menu items accelerator to (this only applies to stock items so a stock item must already be set, make sure to call gtk_image_menu_item_set_use_stock() and gtk_menu_item_set_label() with a valid stock item first).

If you want this menu item to have changeable accelerators then you shouldnt need this (see gtk_image_menu_item_new_from_stock()).

Available since: 2.16

Deprecated since: 3.10

Please do not use it in newly written code.

Parameters

accel_group

Type: GtkAccelGroup

The GtkAccelGroup.

The data is owned by the caller of the method.