After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 736380 - Add Gdk.EventTouch to overrides
Add Gdk.EventTouch to overrides
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2014-09-10 07:06 UTC by Simon Feltman
Modified: 2015-01-24 17:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
overrides: Add Gdk.EventTouch union discrimination (2.42 KB, patch)
2014-09-10 20:31 UTC, Simon Feltman
committed Details | Review

Description Simon Feltman 2014-09-10 07:06:29 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
Comment 1 Simon Feltman 2014-09-10 20:31:20 UTC
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.