From 942a5ce3c8c3814758d672d52b431fbc9ddb878b Mon Sep 17 00:00:00 2001 From: Hari Rana Date: Thu, 9 Feb 2023 19:55:00 -0500 Subject: primary-menu: Rename IDs and tooltip This replaces the standard popover menu's ID to primary_menu, and renames the tooltip to "Main Menu" Per the GNOME HIG, the standard popover menu is called Primary Menu, and tooltip/accessibility label is "Main Menu" Source: https://developer.gnome.org/hig/patterns/controls/menus.html#primary-menus --- data/ui/contacts-main-window.ui | 8 ++++---- src/contacts-main-window.vala | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/data/ui/contacts-main-window.ui b/data/ui/contacts-main-window.ui index 3d01bdc..1b2cd6b 100644 --- a/data/ui/contacts-main-window.ui +++ b/data/ui/contacts-main-window.ui @@ -1,6 +1,6 @@ - +
List Contacts By: @@ -86,10 +86,10 @@ - - hamburger_menu_popover + + primary_menu_popover True - Menu + Main Menu open-menu-symbolic diff --git a/src/contacts-main-window.vala b/src/contacts-main-window.vala index 4ba5480..0d62184 100644 --- a/src/contacts-main-window.vala +++ b/src/contacts-main-window.vala @@ -66,7 +66,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow { [GtkChild] private unowned Gtk.Button select_cancel_button; [GtkChild] - private unowned Gtk.MenuButton hamburger_menu_button; + private unowned Gtk.MenuButton primary_menu_button; [GtkChild] private unowned Gtk.Box contact_sheet_buttons; [GtkChild] @@ -197,7 +197,7 @@ public class Contacts.MainWindow : Adw.ApplicationWindow { private void on_ui_state_changed (Object obj, ParamSpec pspec) { // UI when we're not editing of selecting stuff this.add_button.visible - = this.hamburger_menu_button.visible + = this.primary_menu_button.visible = (this.state == UiState.NORMAL || this.state == UiState.SHOWING); // UI when showing a contact -- cgit v1.2.1