ItemFactory.addForeign

Warning gtk_item_factory_add_foreign has been deprecated since version 2.4 and should not be used in newly-written code. The recommended API for this purpose are the functions gtk_menu_item_set_accel_path() and gtk_widget_set_accel_path(); don't use gtk_item_factory_add_foreign() in new code, since it is likely to be removed in the future. Installs an accelerator for accel_widget in accel_group, that causes the ::activate signal to be emitted if the accelerator is activated. This function can be used to make widgets participate in the accel saving/restoring functionality provided by gtk_accel_map_save() and gtk_accel_map_load(), even if they haven't been created by an item factory.

class ItemFactory
static
void
addForeign

Parameters

accelWidget Widget

widget to install an accelerator on

fullPath string

the full path for the accel_widget

accelGroup AccelGroup

the accelerator group to install the accelerator in

keyval uint

key value of the accelerator

modifiers GdkModifierType

modifier combination of the accelerator

Meta