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 100815 - [ui-review] Context menus from document tabs should be accessible with shift+f10
[ui-review] Context menus from document tabs should be accessible with shift+f10
Status: RESOLVED WONTFIX
Product: gedit
Classification: Applications
Component: general
git master
Other Windows
: Low minor
: GNOME2.8
Assigned To: Gedit maintainers
gedit QA volunteers
Depends on:
Blocks: 115437
 
 
Reported: 2002-12-10 10:53 UTC by Andrew Sobala
Modified: 2005-01-12 17:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
proof of concept (2.86 KB, patch)
2005-01-04 15:53 UTC, Christian Persch
none Details | Review

Description Andrew Sobala 2002-12-10 10:53:10 UTC
From the ui-review:

Main view
- <Eimi> Did anyone mention all the bevels around the status bar parts of 
the main window? Might be a bit less visually cluttered flatter.
- Context menus from document tabs should be accessible with shift+f10
- s/Move to a new window/Move to New Window
- Inactive tabs aren't drawn with the proper theme colours
Comment 1 Paolo Maggi 2002-12-10 15:04:31 UTC
s/Move to a new window/Move to New Window -> DONE
Comment 2 Paolo Maggi 2003-04-23 15:11:04 UTC
- Inactive tabs aren't drawn with the proper theme colours -> Should
be fixed with current gtk+
Comment 3 Paolo Maggi 2003-09-30 16:43:58 UTC
Still to be done:
- Context menus from document tabs should be accessible with shift+f10
Comment 4 Bryan W Clark 2003-12-20 20:28:37 UTC
Paolo, the context menu works for me in the latest version.  Shall we
close this if so?
Comment 5 Paolo Borelli 2003-12-22 10:20:19 UTC
Maybe I'm understanding things wrong, but I think that the bug is
about the context menu of the _tab_ (the one containing "Move to New
Window" etc). To me it looks like it's not fixed yet: shift+f10 when
the file name in the tab label is focused doesn't pop up any menu.
Comment 6 Bryan W Clark 2003-12-22 14:57:41 UTC
Nope, I think I misunderstood this bug, thanks for clearing that up. 
If I have time, I might be able to send in the patch for this, but
probably not until after the holidays.
Comment 7 spark 2004-01-14 20:18:47 UTC
Is there any point in having this context menu at all? All the entries
on it can be accessed from the main menu and having a context menu on 
the tab headers seems a bit unconventional, and also difficult to 
discover. 

Also, Epiphany uses "Detach Tab" instead of "Move to New Window" - not 
sure which is better, but they should be the same.
Comment 8 Paolo Maggi 2004-03-27 15:00:06 UTC
I prefer "Move to New Window".

I'd like to have this bug fixed.
Is anyone willing to provide a patch?
Comment 9 Paolo Borelli 2004-03-27 19:53:57 UTC
I took a quick look (really quick! maybe I'm totally wrong :) but this doesn't
seems so trivial to solve as it seems: the widget that is packed into the
notebook label is constructed in gedit_mdi_child.c where also the popup menu is
constructed. This widget receives the button-press-event signal so right
clicking workd fine. On the other hand it looks like this widget does *not*
receive the popup-menu signal that would make shift+f10 work. I dunno where that
signal gets trapped... maybe in the notebook widget itself, but I'm just guessing.
Comment 10 Christian Persch 2005-01-04 15:53:55 UTC
Created attachment 35433 [details] [review]
proof of concept

This pops up the context menu on Shift-F10 when the tab label is focused.

I think it's in the wrong place though, it should belong in gedit-mdi.c not
bonobo-mdi.c, but I could find no way to get the newly-created notebook
(book_create, book_add_view) from gedit-mdi... any hints?
Comment 11 Paolo Borelli 2005-01-04 16:07:10 UTC
Thanks for giving this a try...

Yes, afaik there is no way to obtain the Notebook widget from gedit-mdi and on
the other hand bonobo-mdi was supposed to be a generic widget without
dependecies on gedit.

Anyway this is a bit of moot point: at some point we need to replace this whole
bonobo-mdi stuff with a new MDI widget which uses UIManager instead of bonobo etc
Comment 12 Paolo Maggi 2005-01-12 17:13:03 UTC
Christian: thank you very much for taking the time to look at this bug and
providing a patch.

Since all the commands present in the context menu are easily accessible using
the main menu and since it seems not possible to close this bug in a sane way
(the Chris' patch works but as he said is only a proof of concept) I'm thinking
to close it as a WONTFIX.

Please, reopen this bug only if you have a sane patch or if you can prove this
is a serious accessibility problem.

We will fix it in a definitive way when we will replace the bonobo-mdi stuff
with a new MDI widget based on UIManager.