GNOME Bugzilla – Bug 736004
touch support for icon activation
Last modified: 2014-09-04 14:44:12 UTC
It has been pointed out that icons in entries only react to button events, not to touch. https://bugzilla.redhat.com/show_bug.cgi?id=1134908
Created attachment 285380 [details] [review] entry: Handle touch events on entry icons Those used to work indirectly due to GtkEntry not setting GDK_TOUCH_MASK, so pointer emulation would happen on those, but the event handlers on icons and its icon-pressed/released signals have never been explicitly touch aware, and this broke since the GDK_TOUCH_MASK can be set indirectly by GtkGestures. So make the icon event handler handle touch events, each icon can get hold of one GdkEventSequence, reacting exclusively to it. This is still not ported to GtkGesture due to GdkEvent exposure in these icon signals, as users might expect GDK_2/3BUTTON_PRESS while GtkGesture ignores those. Also, unset all icon pressed/sequence state on grab-notify, this used to happen ad-hoc when initiating icon DnD, but that doesn't cut it for user-defined reasons to initiate a grab (eg. popovers).
Review of attachment 285380 [details] [review]: seems to work ok, thanks ! the active area is really too small for icons to be touch-friendly, but thats a different issue
Attachment 285380 [details] pushed as 9629fd0 - entry: Handle touch events on entry icons