From ce93a783ee6228f54f5bd24da88becc913c5c85c Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 29 Apr 2025 12:52:32 +0200 Subject: adw: implement HeaderBar --- examples/hello-world/hello.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/hello-world') diff --git a/examples/hello-world/hello.cpp b/examples/hello-world/hello.cpp index 5351370..af9123b 100644 --- a/examples/hello-world/hello.cpp +++ b/examples/hello-world/hello.cpp @@ -13,8 +13,12 @@ auto main(int argc, char ** argv) -> int window->set_title("Hello"); auto toolbar_view = Adwaita::ToolbarView{}; + auto header_bar = Adwaita::HeaderBar{}; + auto window_title = Adwaita::WindowTitle{"Hello", "World"}; auto label = Gtk::Label{"Hello World"}; + header_bar.set_title_widget(window_title); + toolbar_view.add_top_bar(header_bar); toolbar_view.set_content(label); window->set_content(toolbar_view); -- cgit v1.2.3