Class method
Gtk.WidgetClass.add_binding_action
Declaration [src]
void
gtk_widget_class_add_binding_action (
  WidgetClass* self,
  guint keyval,
  GdkModifierType mods,
  const char* action_name,
  const char* format_string
  ...,
)
Description [src]
Creates a new shortcut for widget_class that activates the given
action_name with arguments read according to format_string.
The arguments and format string must be provided in the same way as
with g_variant_new().
This function is a convenience wrapper around
gtk_widget_class_add_shortcut() and must be called during class initialization.
Parameters
| keyval | guint | 
| key value of binding to install | |
| mods | GdkModifierType | 
| key modifier of binding to install | |
| action_name | const char* | 
| the action to activate | |
| Ownership is not transferred to the callee | |
| The string is a NUL terminated UTF-8 string | |
| format_string | const char* | 
| GVariant format string for arguments or  | |
| Can be NULL | |
| Ownership is not transferred to the callee | |
| The string is a NUL terminated UTF-8 string | |
| ... |  | 
| arguments, as given by format string. |