add_shortcut


Description:

[ CCode ( cname = "gtk_widget_class_add_shortcut" ) ]
public class void add_shortcut (Shortcut shortcut)

Installs a shortcut in this.

Every instance created for this or its subclasses will inherit this shortcut and trigger it.

Shortcuts added this way will be triggered in the GTK_PHASE_BUBBLE phase, which means they may also trigger if child widgets have focus.

This function must only be used in class initialization functions otherwise it is not guaranteed that the shortcut will be installed.

Parameters:

this

the class to add the shortcut to

shortcut

the Shortcut to add