O menu principal do aplicativo, representado por três linhas horizontais empilhadas
Allan Day
aday@gnome.org
Georges Neto
georges.stavracas@gmail.com 2014,
Rafael Fontenelle
rafaelff@gnome.org 2017-2019

# Menus primários

Primary menus are a standard design pattern that is found in most applications. They are labelled with the menu icon (named `menu-open`) and contain the top-level menu items for the application. This can include standard items like Preferences, Help and About Application, as well as other application-specific items.

# Quando usar

Most applications have primary menus, since they are the standard location for About Application, which every application is expected to have.

# Orientação

Primary menus are typically placed on the right side of the header bar. However, there are two variations on this rule:

If the application incorporates in-window navigation, with a top-level location and sub-pages, the primary menu should only be placed on the top level: sub-pages can include a secondary menu, if a menu is required.

When used in combination with a sidebar list, the primary menu should be placed above the sidebar list on the right. If a menu is required for items shown in the content side of the window, a secondary menu can be used.

Other guidelines:

Os menus primários podem conter itens para a janela ou exibição atual, bem como o aplicativo como um todo. Isso os diferencia dos menus secundários, que contêm apenas itens de menu relacionados a uma visão ou item específico.

Siga as diretrizes padrão para menus ao decidir sobre o conteúdo e organização do menu primário.

A primary menu is contained within a popover. As such, a primary menu can include a variety of controls, such as groups of buttons.

# Itens de menu padrão

The following are standard primary menu items, and should be placed in a group at the end of the menu:

Preferences | Opens the application's preferences dialog, if it has one.
Keyboard Shortcuts | Opens the application's keyboard shortcuts window, if it has one.
Help | Opens the application's user documentation in the Help application.
About Application | Opens the application's about dialog. This item should include the application's name, such as About Photos or About Calculator. Every primary menu should include this item.

Os menus primários não devem incluir itens de menu para fechar ou sair: as janelas já podem ser fechadas usando o botão Close na barra de cabeçalho e pode ser ambíguo quanto ao item de menu de fechamento. Os usuários não diferenciam prontamente entre sair e fechar e, portanto, podem ser enganosos.

# Referência de API

GtkMenuButton

GtkPopoverMenu