GNOME Bugzilla – Bug 336644
GailButton release action should synthesize a GdkEvent
Last modified: 2006-11-07 18:19:11 UTC
Now GailButton implements "press" and "release" actions in a different way. For "press" event, it synthesizes a GdkEvent. But the release action simply calls gtk_button_release to do the same work. It prevents buttons with handlers listening to button_release_event" from getting "release" actions. It would be preferrable that the "release" action would be implemented in the same way "press" action is implemented.
Created attachment 62448 [details] [review] GdkEvent implementation of GailButton "release" action This is an implementation of the "release" action of GailButton synthesizing a GdkEvent. It's quite similar to the solution used for the "press" action. I've tested it with some test cases I have here, and it works the same way the original code did, but solving my problem with button-press-event and button-release-event handling (now the action fires these events as expected).
Comment on attachment 62448 [details] [review] GdkEvent implementation of GailButton "release" action patch looks good, thanks for the work! in future, diff -u would be a preferable format for patches.
Please commit if you are able, otherwise ask me and I will commit the patch.
I haven't got a cvs account. So yes, please commit it. Thanks!