Skip to content

Commit

Permalink
feat: stack switcher in headerbar for plain gtk version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Musco committed Dec 9, 2023
1 parent 0b34520 commit 28a61fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lact-gui/src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ impl App {
let root_view = Box::builder().orientation(Orientation::Vertical).build();
root_view.append(&root_stack.container);
root_view.append(&Separator::new(Orientation::Horizontal));
root_view.append(
headerbar.container.set_title_widget(Some(
&StackSwitcher::builder()
.stack(&root_stack.container)
.halign(Align::Center)
.vexpand(false)
.hexpand(true)
.build(),
);
));
window.set_titlebar(Some(&headerbar.container));
window.set_child(Some(&root_view));
}
Expand Down

0 comments on commit 28a61fb

Please sign in to comment.