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 584651 - top panel should act like a menubar
top panel should act like a menubar
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks: 584650
 
 
Reported: 2009-06-02 19:59 UTC by William Jon McCann
Modified: 2010-06-08 05:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the top bar may use to show the menu of the curent aplication (253.60 KB, image/png)
2009-11-07 12:07 UTC, wzssyqa
Details
when show workspace,the top bar can use to show a main menu (682.18 KB, image/png)
2009-11-07 12:09 UTC, wzssyqa
Details

Description William Jon McCann 2009-06-02 19:59:46 UTC
All of the items on the top panel should have drop down menus that act like part of a single menu-bar.  This includes the status area icons and the clock.
Comment 1 Michael Monreal 2009-06-21 13:29:17 UTC
Does this suggestion include moving GTK to a single menu-bar model like OSX? I have been thinking about this for a while... at least I tend to use many apps full-screen on it's own workspace with gnome-shell (something I did never really do before) so a menu bar like the one in OSX would make sense for me now.
Comment 2 wzssyqa 2009-11-07 11:00:13 UTC
i have the same imagine.

i think the top bar should be like mac os X top menu ,which can dynamic change.

the menu bar may be used to display the current application's menu bar ,just like mac os x.

when using sidebar of gnome-shell it could display a system menu.
Comment 3 wzssyqa 2009-11-07 12:07:32 UTC
Created attachment 147161 [details]
the top bar may use to show the menu of the curent aplication
Comment 4 wzssyqa 2009-11-07 12:09:27 UTC
Created attachment 147162 [details]
when show workspace,the top bar can use to show a main menu
Comment 5 wzssyqa 2009-11-07 12:12:20 UTC
and i think that should to reduce as more clicks as can
Comment 6 Dan Winship 2009-11-07 16:27:52 UTC
wzssyqa: this bug is not about having a mac-like global menubar, it's about changing the behavior of the things that are already in the panel
Comment 7 wzssyqa 2009-11-08 04:03:42 UTC
sorry,i misunderstand it.

what should i do now? make a new bug?
Comment 8 Dan Winship 2009-11-13 16:23:35 UTC
So... this is hard. gtk_menu_popup() tries to get a pointer grab, and bails out if it can't get it. But once a tray icon gets a pointer grab, the shell no longer has the ability to control what happens when you move the mouse away from that icon to a different one.

If we could control the way that the tray icon's menu was created, we might be able to make this work by sticking it into a specially-written GtkMenuShell whose GdkWindow wrapped a Window owned by the shell, so that all tray icons would share the same grab window. But I'm not sure that doing a cross-process grab like that would actually work, and this would require making a bunch of changes to GtkStatusIcon, and at any rate, GtkStatusIcon *doesn't* control how the tray icon's menu is created anyway; it just emits "activate", and the app creates its own GtkMenu (or does whatever else it wants to do).

So basically, AFAICT, this requires, at a minimum, adding new APIs to GtkStatusIcon and then porting each tray icon we care about to make it use those new APIs. But it's possible that that won't work anyway and actually it would require moving all of the tray icons into the gnome-shell process as well.
Comment 9 Colin Walters 2010-05-25 14:26:21 UTC
Going to mark this as done; we have the infrastructure, moving individual items to it should be individual bugs.