On Mon, May 7, 2012 at 1:28 PM, Allan Day <allanp...@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
_______________________________________________
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list

Reply via email to