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 622581 - [GSEAL] GtkButton has no accessor for event_window
[GSEAL] GtkButton has no accessor for event_window
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.21.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 577469 597610 612481
 
 
Reported: 2010-06-24 10:22 UTC by Mirsal Ennaime
Modified: 2011-02-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add an accessor for the GSEALed Gtkbutton's event_window attribute (2.00 KB, patch)
2010-06-24 10:36 UTC, Mirsal Ennaime
none Details | Review

Description Mirsal Ennaime 2010-06-24 10:22:35 UTC
There is no way to access a GtkButton's event_window when GSEAL is enabled.

It is needed for corner cases which require messing with enter/leave notify events.
Comment 1 Mirsal Ennaime 2010-06-24 10:36:15 UTC
Created attachment 164492 [details] [review]
Add an accessor for the GSEALed Gtkbutton's event_window attribute
Comment 2 Christian Dywan 2010-06-24 10:42:56 UTC
Could you give examples of these corner cases you speak of?
Comment 3 Mirsal Ennaime 2010-06-24 11:16:37 UTC
Gdl, for instance needs this in order to work around an issue which makes buttons reparented while beneath the mouse pointer not emiting ::leave-notify-event (and so, not setting the in_button property to false, which causes the button to appear in the wrong state)

The previous workaround for this was to manually set in_button to false and call gtk_button_leave()

now, gdl synthesizes a crossing event manually, and it needs an access to the button's event_window to do so "correctly"

(see https://bugzilla.gnome.org/show_bug.cgi?id=577469)
Comment 4 Christian Dywan 2010-06-24 11:22:33 UTC
Oh, that one. Maybe it would have been easier to have one instead of 3 bugs for this issue.
Comment 5 Christian Dywan 2010-06-24 11:25:50 UTC
For reference, bug 622186 is the third one.
Comment 6 Javier Jardón (IRC: jjardon) 2010-06-24 14:05:59 UTC
Seems that gnome-panel needs this function too, see bug #612481