From 2ee3f347ce25ecc4723b0e1a9dc57008049d9215 Mon Sep 17 00:00:00 2001 From: Anton Lazarev Date: Sun, 17 Dec 2023 23:21:40 -0800 Subject: [PATCH] main-window: Use menu model for app menu popover https://docs.gtk.org/gtk4/migrating-3to4.html#gtkmenu-gtkmenubar-and-gtkmenuitem-are-gone Unclear why the invisible entries for `Keyboard shortcuts` and `Help` are there. I've left them ported but commented out for now. Part-of: --- src/ui/main-window.ui | 64 ++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 41 deletions(-) diff --git a/src/ui/main-window.ui b/src/ui/main-window.ui index 3ee1325..fdfa51b 100644 --- a/src/ui/main-window.ui +++ b/src/ui/main-window.ui @@ -158,46 +158,28 @@ - - - vertical - 12 - 12 - 12 - 12 - 6 - - - True - _VoIP Accounts - app.accounts - - - - - vertical - - - - - False - _Keyboard shortcuts - - - - - False - _Help - - - - - True - _About Calls - win.about - - - - + app-menu + +
+ + _VoIP Accounts + app.accounts + +
+
+ + + + _About Calls + win.about + +
+