Function

Metakeybindings_set_custom_handler

Declaration [src]

gboolean
meta_keybindings_set_custom_handler (
  const gchar* name,
  MetaKeyHandlerFunc handler,
  gpointer user_data,
  GDestroyNotify free_data
)

Description [src]

Allows users to register a custom handler for a builtin key binding.

Parameters

name const gchar*
 

The name of the keybinding to set.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
handler MetaKeyHandlerFunc
 

The new handler function.

user_data gpointer
 

User data to pass to the callback.

free_data GDestroyNotify
 

Will be called when this handler is overridden.

Return value

Returns: gboolean
 

TRUE if the binding known as name was found, FALSE otherwise.