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 349690 - Unable to access panel's right click menu via ATK
Unable to access panel's right click menu via ATK
Status: RESOLVED NOTABUG
Product: gnome-panel
Classification: Other
Component: general
2.14.x
Other All
: Normal enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-02 17:41 UTC by Tim Reilly
Modified: 2015-03-24 13:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tim Reilly 2006-08-02 17:41:43 UTC
I wanted to use sniff to explore right-click menus (specifically, sniff adding and removing things from the panel) but it isn't possible. I can right-click the panel but gnome automatically closes the menu when I switch back to sniff.

There isn't a clear way to fix this but talking to zack, it's a valid concern.
Comment 1 Dave Malcolm 2006-08-03 15:35:00 UTC
Sounds to me like this is a bug in gnome-panel: is the action of right-clicking on the main area of a panel accessible in any way?  Should it expose a "menu" action to bring up the context menu?

I've seen this with gnome-panel-2.14.1-2 (on Fedora) - Tim: which version are you using?

Reassigning from dogtail to gnome-panel and adding "accessibility" keyword
Comment 2 Dave Malcolm 2006-08-03 15:36:20 UTC
(renaming summary to make problem more clear)
Comment 3 Tim Reilly 2006-08-03 17:24:37 UTC
Thanks for helping me with this, Dave. I've got gnome-panel-2.14.2-1.fc5.1 installed.
Comment 4 Vincent Untz 2006-08-09 09:25:46 UTC
Erm, you'll need to help me here :-)

Which right-click menus?
What is sniff?
What should be done to fix this?
Comment 5 Ray Strode [halfline] 2006-08-09 18:53:55 UTC
note, you don't need to right click on a panel to get it's menu.  you can ctrl-alt-tab to the panel to give it focus and then use ctrl-f10 to pop up the context menu.
Comment 6 Tim Reilly 2006-08-09 19:44:20 UTC
The right-click panel menu that has "Add to Panel..." "Properties" and "Delete this Panel...".

sniff is a AT-SPI browser that comes along with dogtail ( http://people.redhat.com/zcerza/dogtail/ ). Normally applications have a "menu" action in sniff that lets me get to the right-click menu. The desktop has this menu so I can get to "Create Folder" "Create Launcher" etc just fine.

I'm not really much of a gnome coder so I don't really know how to fix this issue.
Comment 7 Vincent Untz 2006-08-11 12:18:37 UTC
As Ray pointed out, you can access this menu without the mouse.

I don't understand how this is different from all the right-click menus we have everywhere on the desktop.
Comment 8 Tim Reilly 2006-08-14 21:44:48 UTC
I'm not sure what's different between Nautilus's right-click and panel's right-click. I wish I knew more about gnome applications so I could be more clear. Dave Malcolm is away for now, but when he comes back he can probably provide clearer info. Until then I'm not sure how to progress...
Comment 9 Vincent Untz 2007-01-15 12:31:46 UTC
Ping for Dave.
Comment 10 Joanmarie Diggs (IRC: joanie) 2007-01-19 16:40:44 UTC
This may be related to something I'm seeing, namely you cannot access many of the panel's right-click menu via screen readers such as Orca.  The menu appears, you can arrow in it, but as far as Orca is concerned, it's not there (so the contents are not spoken, which means it's not usable for people who are blind).

I'm not sure what the difference is either, but it seems that we normally get focus events in menus and that we are not getting them for the panel's right-click menus.  Try comparing a couple of menus using AT-POKE to log focus events.  For instance, if I turn on event logging and then press Alt F1 to get into the Applications menu and then arrow around, AT-POKE logs:

generic event 'focus:' A|co|ac|te|se:menu:Applications:(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Accessibility:Accessibility...(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Applications:(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Accessories:Desktop acces...(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Applications:(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Games:Games and amu...(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Applications:(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Graphics:Graphics appl...(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Applications:(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Internet:Programs for ...(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Applications:(0) (0)
generic event 'focus:' A|co|ac|te|se:menu:Office:Office Applic...(0) (0)

If I turn on event logging, use Control Alt Tab to move to the bottom panel, Tab to the trash icon, press Shift F10 for the right-click menu, and arrow around, AT-POKE logs ... nothing.  Using the mouse, btw, makes no difference in terms of what focus events we get.

This lack of events is also true for the right-click menus associated with the weather applet, network monitor, and volume control.  Interestingly enough, the problem does not exist with the system clock -- you get plenty of focus events for that menu.

Assuming this is the same problem as described in the original bug, please consider upgrading the severity.  If it's a different issue and/or should be filed elsewhere, please let me know.

Thanks!!
Comment 11 Tim Reilly 2007-01-19 17:00:13 UTC
This should be the same bug that you are experiencing, as sniff/dogtail uses accessibility hooks to work its magic.
Comment 12 Joanmarie Diggs (IRC: joanie) 2007-01-27 21:04:15 UTC
Having done a bit more investigation, my issue seems to be a bit different.  See http://bugzilla.gnome.org/show_bug.cgi?id=400709#c3.

Sorry about that!
Comment 13 Vincent Untz 2007-02-17 21:34:56 UTC
Marking as NEEDINFO since I still don't know what's the issue here.
Comment 14 Vincent Untz 2007-06-15 15:57:36 UTC
Still nobody to explain what's the issue? I'm going to close the bug soon :-)
Comment 15 Zack Cerza 2007-06-15 18:54:17 UTC
This isn't really a bug, actually.

Slightly separately, Vincent, on the AT-SPI side of things, when the context menu is created, it's created as an Accessible with the 'window' role, and its parent is the Application object representing gnome-panel. Do you know if it would be feasible to give the context menu the 'menu' role, and for extra credit make it the child of the widget that was right-clicked-on to create the menu? Should I file that as a separate bug?

This one should probably be closed, though.
Comment 16 Vincent Untz 2007-06-15 20:18:16 UTC
(In reply to comment #15)
> This isn't really a bug, actually.

Ok.

> Slightly separately, Vincent, on the AT-SPI side of things, when the context
> menu is created, it's created as an Accessible with the 'window' role, and its
> parent is the Application object representing gnome-panel. Do you know if it
> would be feasible to give the context menu the 'menu' role, and for extra
> credit make it the child of the widget that was right-clicked-on to create the
> menu? Should I file that as a separate bug?

Yes, please file a new bug. And I have absolutely no idea how to do what you're asking :-) I would have hoped GTK+ would handle this automatically. But it's certainly doable. All the code for the context menu is in panel-context-menu.c.