GNOME Bugzilla – Bug 622581
[GSEAL] GtkButton has no accessor for event_window
Last modified: 2011-02-04 16:12:18 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.
Created attachment 164492 [details] [review] Add an accessor for the GSEALed Gtkbutton's event_window attribute
Could you give examples of these corner cases you speak of?
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)
Oh, that one. Maybe it would have been easier to have one instead of 3 bugs for this issue.
For reference, bug 622186 is the third one.
Seems that gnome-panel needs this function too, see bug #612481