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 472301 - Consume behavior not conforming to IDL
Consume behavior not conforming to IDL
Status: RESOLVED FIXED
Product: pyatspi2
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Li Yuan
Li Yuan
Depends on:
Blocks: 448848
 
 
Reported: 2007-08-31 18:30 UTC by Eitan Isaacson
Modified: 2019-03-27 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (5.58 KB, patch)
2007-08-31 18:32 UTC, Eitan Isaacson
none Details | Review
Proposed patch (3.85 KB, patch)
2007-09-04 18:09 UTC, Eitan Isaacson
committed Details | Review

Description Eitan Isaacson 2007-08-31 18:30:43 UTC
Hi,

Currently pyatspi has an DeviceEvent attribute called 'consume' that could be set to true to stop the trickling of the event to other observers and ultimately the desktop. This attribute is not part of the IDL. 

Peter, was this attribute created to solve a certain problem? Perhaps in LSR?

If not I would recommend removing it and allowing observers to return True to consume the event.
Comment 1 Eitan Isaacson 2007-08-31 18:32:50 UTC
Created attachment 94720 [details] [review]
Proposed patch

This patch enables event callbacks to return True to consume the event. For uniformity I also got rid of Event.consume and put the same logic in place.
Comment 2 Eitan Isaacson 2007-09-04 18:09:52 UTC
Created attachment 94945 [details] [review]
Proposed patch

This patch does not deprecate the consume attribute. This is more practical to commit now because of the proximity to a GNOME release.
Comment 3 Willie Walker 2007-09-07 13:24:21 UTC
(In reply to comment #2)
> Created an attachment (id=94945) [edit]
> Proposed patch
> 
> This patch does not deprecate the consume attribute. This is more practical to
> commit now because of the proximity to a GNOME release.
> 

I think this looks OK.  Li, how about you?  It would be nice to get this into the GNOME 2.20 release.
Comment 4 Li Yuan 2007-09-13 03:27:52 UTC
I'm sorry, I must missed the mail. Is it worth to break hard code freeze? Or we can wait until 2.20.1
Comment 5 Eitan Isaacson 2007-09-13 18:23:27 UTC
I think it is worth putting in, the earlier the better so that dependent projects don't resort to using the consume attribute. This will cause breakage in later releases.
Comment 6 Li Yuan 2007-09-14 02:41:10 UTC
The patch doesn't break any API/ABI and string freeze, right?
Comment 7 Eitan Isaacson 2007-09-14 05:32:52 UTC
Nope. It doesn't.
Comment 8 Li Yuan 2007-09-14 07:41:30 UTC
OK. I think we can try to break the freeze. Could you send mail to release-team to explain the reason we want to break the freeze?