Declaration [src]

gtk_key_snooper_install (
  GtkKeySnoopFunc snooper,
  gpointer func_data

Description [src]

Installs a key snooper function, which will get called on all key events before delivering them normally.

Deprecated since:3.4

Key snooping should not be done. Events should be handled by widgets.

This function is not directly available to language bindings


snooper GtkKeySnoopFunc

A GtkKeySnoopFunc.

func_data gpointer

Data to pass to snooper.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: guint

A unique id for this key snooper for use with gtk_key_snooper_remove().