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 731711 - GtkLabel forwards button-press-event after showing a context menu
GtkLabel forwards button-press-event after showing a context menu
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkGesture
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-06-16 10:19 UTC by Christoph Reiter (lazka)
Modified: 2014-06-25 16:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
python example (815 bytes, text/plain)
2014-06-16 10:19 UTC, Christoph Reiter (lazka)
  Details
gesture: Consume the event triggering ::begin if reset within the handler (3.83 KB, patch)
2014-06-25 16:36 UTC, Carlos Garnacho
committed Details | Review

Description Christoph Reiter (lazka) 2014-06-16 10:19:58 UTC
Created attachment 278524 [details]
python example

The attached script shows a window with a selectable label as only child. With GTK+ <=3.12 right clicking on the label did not emit button-press-event on the 
parent and show a context menu. With GTK+ 3.13 it does both.
Comment 1 Matthias Clasen 2014-06-17 00:59:17 UTC
fallout from gesture merge I think
Comment 2 Carlos Garnacho 2014-06-25 16:36:46 UTC
The following fix has been pushed:
80d6735 gesture: Consume the event triggering ::begin if reset within the handler
Comment 3 Carlos Garnacho 2014-06-25 16:36:51 UTC
Created attachment 279234 [details] [review]
gesture: Consume the event triggering ::begin if reset within the handler

If the event triggers GtkGesture::begin, and the handler ends up resetting
the gesture (say, due to taking a grab somewhere else within the handler),
still take the event as "managed", as it actually triggered recognition,
even if just to end abruptly.