GNOME Bugzilla – Bug 368626
Orca accessing tool tips from gnome-panel causes gnome-panel to crash
Last modified: 2008-07-22 19:26:56 UTC
See the blocking bug for more info.
Created attachment 75746 [details] [review] Patch to ignore all events from tool tips to work around the real cause of the problem This merely ignores all tool tip events. The real problem seems to lie elsewhere (gail, gtk?), but we need to work around this problem until the bug is fixed.
If there is a way to determine the revision level of the offending version of atk that had this problem, we might be able to if/else the decision about whether to pay attention to or ignore the events. This might come in the form of looking at the toolkit info of the app of the event source. Maybe, but querying for that info might also cause the crash.
(In reply to comment #2) > If there is a way to determine the revision level of the offending version of > atk that had this problem, we might be able to if/else the decision about > whether to pay attention to or ignore the events. This might come in the form > of looking at the toolkit info of the app of the event source. Maybe, but > querying for that info might also cause the crash. In python, the following seems to give the gtk version: import gtk gtk.gtk_version The current version on Ubuntu Feisty (GNOME 2.18) is: (2, 10, 11) So...as a possible solution: 1) Change line in focus_tracking_presenter.py from: if event.source.role == rolenames.ROLE_TOOL_TIP: to: if settings.ignoreTooltipEvents and (event.source.role == rolenames.ROLE_TOOL_TIP): 2) Make the default value of settings.ignoreTooltipEvents be based upon gtk.gtk_version.
Created attachment 85491 [details] first cut at presenting gnome-panel applet tooltips gnome-panel appets fire a state-changed:showing event when the tooltip is popped up. However, event source is always the first gnome-panel applet that popped up. It's not just the name and description that's cached, it appears to be the applet accessible. I temporarily turned off bounds-changed listening for the gnome-power-manager to reduce the flood of events.
Created attachment 85498 [details] fixed braino calculating current and minimum GTK version
Created attachment 85723 [details] [review] Fixes problem This patch appears to fix the problem with the exception of a few applets like the gnome-power-manager and network-applet that (probably) need to be treated as special cases:
Created attachment 85724 [details] new file that was omitted from patch because I didn't do a "svn add" before generating the patch diffs New file: src/orca/scripts/gnome-panel.py
Created attachment 85772 [details] [review] Additional fix 2007-04-03 Lynn Monsanto <lynn.monsanto@sun.com> * src/orca/orca.py, src/orca/settings.py: Additional fix for Bug 368626 - [blocked] Orca accessing tool tips from gnome-panel causes gnome-panel to crash. Moved setting of settings.presentTooltips from orca.py to settings.py. This makes it possible for users to override the setting.
The underlying bug for this has been fixed for GNOME 2.18, so I'm removing the '[blocked]' prefix. Lynn - if the patches in question have been committed, please mark them as so. In addition, it seems as though this particular bug (the crash) has been fixed, so I think you can close this bug as FIXED. Thanks!
The patches have been committed. Closing the bug as fixed.