From d9a1433cc23a56b40faf0c9fc368d32feb8b921f Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Tue, 17 Oct 2023 23:33:48 +0200 Subject: [PATCH] Try migrate other elements [Learning] --- src/window.blp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/window.blp b/src/window.blp index a34271f..082cfb5 100644 --- a/src/window.blp +++ b/src/window.blp @@ -2,8 +2,30 @@ using Gtk 4.0; using Adw 1; template TutorialWindow : Adw.ApplicationWindow { + title: _("My Application"); default-width: 800; default-height: 600; + + Adw.ToolbarView { + + [top] + Adw.HeaderBar header_bar { + + + [end] + Gtk.MenuButton { + menu-model: primary_menu; + primary: True; + icon: "open-menu-symbolic"; + tooltip-text: _("Menu"); + } + } + + Gtk.Label { + styles ["title-1"] + label: "Hello, World!"; + } + } } menu primary_menu {