GNOME Bugzilla – Bug 736380
Add Gdk.EventTouch to overrides
Last modified: 2015-01-24 17:04:46 UTC
We currently add all Gdk.Event methods onto the various Gdk.Event union-ed structs in the Gdk overrides. We need to add an entry for Gdk.EventTouch which is not listed. We also need to add the following union members in _UNION_MEMBERS which point to 'touch': GDK_TOUCH_BEGIN GDK_TOUCH_UPDATE GDK_TOUCH_END GDK_TOUCH_CANCEL See: https://git.gnome.org/browse/pygobject/tree/gi/overrides/Gdk.py?id=3.13.91#n161
Created attachment 285861 [details] [review] overrides: Add Gdk.EventTouch union discrimination Add EventTouch to get/setattr pass-through to support BEGIN, UPDATE, END, and CANCEL touch event types. Ensure Gdk.Event methods get_state(), get_axis(), get_coords(), and get_root_coords() are patched onto Gdk.EventTouch.
https://git.gnome.org/browse/pygobject/commit/?id=17ec0d3