From ef2fcf335eca3e0a78bd3053fa8fcb381a72a44a Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Tue, 17 Oct 2023 23:15:38 +0200 Subject: [PATCH] Migrate menu to blueprint --- src/window.blp | 19 +++++++++++++++++++ src/window.ui | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/window.blp b/src/window.blp index 0245742..a34271f 100644 --- a/src/window.blp +++ b/src/window.blp @@ -4,4 +4,23 @@ using Adw 1; template TutorialWindow : Adw.ApplicationWindow { default-width: 800; default-height: 600; +} + +menu primary_menu { + section { + item { + label: _("Preferences"); + action: "app.preferences"; + } + + item { + label: _("Keyboard Shortcuts"); + action: "win.show-help-overlay"; + } + + item { + label: _("About"); + action: "app.about"; + } + } } \ No newline at end of file diff --git a/src/window.ui b/src/window.ui index 84b517c..b149191 100644 --- a/src/window.ui +++ b/src/window.ui @@ -23,7 +23,7 @@ Hello, World!