API: Deprecate key snooping
You really shouldn't be doing this. If you have to, you can use gdk_window_add_filter() or listen to raw events on XI2.
This commit is contained in:
@ -2142,6 +2142,9 @@ gtk_device_grab_remove (GtkWidget *widget,
|
|||||||
*
|
*
|
||||||
* Returns: a unique id for this key snooper for use with
|
* Returns: a unique id for this key snooper for use with
|
||||||
* gtk_key_snooper_remove().
|
* gtk_key_snooper_remove().
|
||||||
|
*
|
||||||
|
* Deprecated: 3.4: Key snooping should not be done. Events should
|
||||||
|
* be handled by widgets.
|
||||||
*/
|
*/
|
||||||
guint
|
guint
|
||||||
gtk_key_snooper_install (GtkKeySnoopFunc snooper,
|
gtk_key_snooper_install (GtkKeySnoopFunc snooper,
|
||||||
@ -2166,6 +2169,9 @@ gtk_key_snooper_install (GtkKeySnoopFunc snooper,
|
|||||||
* @snooper_handler_id: Identifies the key snooper to remove
|
* @snooper_handler_id: Identifies the key snooper to remove
|
||||||
*
|
*
|
||||||
* Removes the key snooper function with the given id.
|
* Removes the key snooper function with the given id.
|
||||||
|
*
|
||||||
|
* Deprecated: 3.4: Key snooping should not be done. Events should
|
||||||
|
* be handled by widgets.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gtk_key_snooper_remove (guint snooper_id)
|
gtk_key_snooper_remove (guint snooper_id)
|
||||||
|
|||||||
@ -152,8 +152,10 @@ void gtk_device_grab_add (GtkWidget *widget,
|
|||||||
void gtk_device_grab_remove (GtkWidget *widget,
|
void gtk_device_grab_remove (GtkWidget *widget,
|
||||||
GdkDevice *device);
|
GdkDevice *device);
|
||||||
|
|
||||||
|
G_GNUC_DEPRECATED
|
||||||
guint gtk_key_snooper_install (GtkKeySnoopFunc snooper,
|
guint gtk_key_snooper_install (GtkKeySnoopFunc snooper,
|
||||||
gpointer func_data);
|
gpointer func_data);
|
||||||
|
G_GNUC_DEPRECATED
|
||||||
void gtk_key_snooper_remove (guint snooper_handler_id);
|
void gtk_key_snooper_remove (guint snooper_handler_id);
|
||||||
|
|
||||||
GdkEvent * gtk_get_current_event (void);
|
GdkEvent * gtk_get_current_event (void);
|
||||||
|
|||||||
Reference in New Issue
Block a user