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 132156 - cannot detect presence of context menus
cannot detect presence of context menus
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
0.x.x [obsolete]
Other All
: Normal major
: ---
Assigned To: padraig.obriain
Nautilus Maintainers
AP2
Depends on:
Blocks:
 
 
Reported: 2004-01-21 23:35 UTC by bill.haneman
Modified: 2010-07-06 21:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1.61 KB, patch)
2004-01-23 10:53 UTC, padraig.obriain
none Details | Review

Description bill.haneman 2004-01-21 23:35:10 UTC
it seems that we don't ever see an 'action' for popping up a context menu.
I think we agreed previously that this was the heuristic for determining
that a context menu exists for an object.  For instance we can't tell that
the nautilus 'desktop' has a context (right-click) menu, and therefore
cannot expose it in GOK.

if this is a nautilus bug please transfer, but I suspect that this may be
at least partly addressable in gail for some widgets.  Padraig?
Comment 1 padraig.obriain 2004-01-22 09:29:03 UTC
It seems that you asking that the AtkObject for a GtkWidget, or even a
non-widget, be aware of whether Shift+F10, the keybinding for popping
up a context menu actually pops up a context menu?

I do not think that this is possible.
Comment 2 bill.haneman 2004-01-22 10:31:26 UTC
we already agreed that this was necessary however.  I agree that we
may not be able to detect it in the general case but we do need to
expose it on 'standard' components for which context menus are expected.
besides, can we not detect whether a signal handler for the
corresponding signal is attached?

It's required for nautilus at least.
Comment 3 padraig.obriain 2004-01-22 10:59:03 UTC
Sometimes instead of defining a signal handler for popup_menu signal a
a key press event handler which checks for Shift+F10 is used.

What are the 'standard' components for which context menus are
expected.

I have looked at the implementation of NautilusIconCanvasItem and it
does have code to implement an action called "menu". This should work
for icons on the desktop. I need to look at the accessible
implementation for the desktop.
Comment 4 bill.haneman 2004-01-22 11:40:43 UTC
ok, if the keypress handler is used then we probably can't do a lot to
detect it.  Perhaps we should recommend against that implementation.

I didn't see the 'menu' actions on the icons in at-poke, will look again.
Comment 5 padraig.obriain 2004-01-22 16:35:45 UTC
The menu action is there for icon. You need to scroll down to see it.
The menu action requires that the icon be the only one selected in
order to work.
Comment 6 padraig.obriain 2004-01-23 10:52:44 UTC
Transferring nautilus/Accessibility
Comment 7 padraig.obriain 2004-01-23 10:53:26 UTC
Created attachment 23664 [details] [review]
Proposed patch
Comment 8 padraig.obriain 2004-01-23 10:55:16 UTC
The proposed patch adds menu AtkAction to desktop and Icon View.
Comment 9 padraig.obriain 2004-01-23 15:50:34 UTC
Bill,

Can you confirm that this patch fixes the problem you reported.
Comment 10 Calum Benson 2004-01-23 16:24:34 UTC
Updating status whiteboard to reflect a11y team's assessment of priority.
Comment 11 bill.haneman 2004-01-23 16:57:57 UTC
Padraig, any chance of implementing this for vte as well?
Comment 12 padraig.obriain 2004-01-23 17:08:30 UTC
If you open a bug against vte I will have a look at it.

Comment 13 bill.haneman 2004-01-23 17:09:58 UTC
Hi Padraig: the patch does work; however there's the issue of
focus-on-desktop-icon vs. focus-on-desktop to contend with.  It seems
that from our perspective focus is pretty much always on the selected
desktop icon, which means that the icon context menu is easy to find
(i.e currently-focussed-object has context menu heuristic) but the
desktop's context menu is a little harder.  I'm still thinking about
that topic to see if there's a logical solution to offering 'both'
context menus (e.g. Control-F10 and Shift-F10 equivalents).
Comment 14 padraig.obriain 2004-01-27 15:58:41 UTC
Patch committed to CVS HEAD.
Comment 15 Allan Day 2010-07-06 21:08:55 UTC
Changing component as a part of ongoing reorganisation work.