Try migrate other elements [Learning]
This commit is contained in:
parent
ef2fcf335e
commit
d9a1433cc2
1 changed files with 22 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue