Re: GNOME Goal Proposal: Port to GMenu
- From: Florian Müllner <fmuellner gnome org>
- To: Allan Day <allanpday gmail com>
- Cc: desktop-devel-list gnome org, Andrew Cowie <andrew operationaldynamics com>
- Subject: Re: GNOME Goal Proposal: Port to GMenu
- Date: Mon, 7 May 2012 15:37:22 +0200
On Mon, May 7, 2012 at 1:28 PM, Allan Day
<allanpday gmail com> wrote:
On Mon, May 7, 2012 at 7:15 AM, Andrew Cowie
> Is there a reference application doing this right?
There are two paths available to applications - (1) replace the menu
bar entirely, or (2) move some items to the app menu. For (1), the
calculator [1] is a good example. For (2), I'd recommend checking out
Nautilus [2].
For [2] there are actually two paths as well:
a) keep the existing menus, but add an additional application menu; the tricky part is to make sure
that the app menu is not shown in non-gnome environments (as windows would end up with *two*
menubars), and hide items already in the app menu from regular menus when running in gnome
b) port *all* menus to GMenu, and use gtk_application_set_menubar() to set the "in-window" menubar;
in environments that do not support the app menu, GTK+ will display it as first item in the menubar
*automagically*
So for a transitional period, option [2]a is OK, but long term application should really go with [1] or [2]b.
Regards,
Florian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]