aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-world
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello-world')
-rw-r--r--examples/hello-world/hello.cpp4
1 files changed, 4 insertions, 0 deletions
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);