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 694406 - Excessive amount of accessible text events when changing selection in gtk3-demo
Excessive amount of accessible text events when changing selection in gtk3-demo
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Accessibility
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-02-22 02:26 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2013-02-26 14:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test script (963 bytes, text/x-python)
2013-02-22 02:26 UTC, Joanmarie Diggs (IRC: joanie)
Details
test script redux (848 bytes, text/plain)
2013-02-22 02:29 UTC, Joanmarie Diggs (IRC: joanie)
Details

Description Joanmarie Diggs (IRC: joanie) 2013-02-22 02:26:55 UTC
Created attachment 237135 [details]
test script

Steps to reproduce:
1. Launch the attached test script
2. Launch gtk3-demo
3. Arrow Up and Down in the list of demos

Expected results: There would not be an excessive amount of accessible text events each time the selection changed.

Actual results: Arrowing Up or Down **just once** results in hundreds -- and in some cases thousands of accessible text events:

  KEY PRESS: Down
    220 object:text-changed:insert events
    220 object:text-caret-moved events
      2 object:text-changed:delete events
  KEY RELEASE: Down

  KEY PRESS: Down
   1179 object:text-changed:insert events   <-- !!!
   1179 object:text-caret-moved events      <-- !!!
      2 object:text-changed:delete events
  KEY RELEASE: Down

  KEY PRESS: Down
    585 object:text-changed:insert events
    585 object:text-caret-moved events
      2 object:text-changed:delete events
  KEY RELEASE: Down

  KEY PRESS: Down
    232 object:text-changed:insert events
    232 object:text-caret-moved events
      2 object:text-changed:delete events
  KEY RELEASE: Down

Many of these events are from the text widget in the GtkNotebook whose text is not visible (i.e. to the sighted user, because it's on the notebook page which is not active). And even if the notebook page were visible, this many text events seems less than ideal. One, single big ol' text event should suffice.

And, yes, I realize that gtk3-demo is not a typical end-user app. But assuming it does not have its own custom accessibility implementation, it is theoretically possible that a real end-user app could spew a similar amount.
Comment 1 Joanmarie Diggs (IRC: joanie) 2013-02-22 02:29:41 UTC
Created attachment 237136 [details]
test script redux

Sorry for the noise. Had a method in progress and then thought the better of it; but failed to delete it.