mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
use libadwaita WindowTitle
This commit is contained in:
parent
4ba2698cee
commit
3106844cc6
7 changed files with 70 additions and 134 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use adw::HeaderBar;
|
||||
use adw::{HeaderBar, WindowTitle};
|
||||
use gtk::Box;
|
||||
|
||||
pub struct Widget {
|
||||
|
|
@ -7,7 +7,7 @@ pub struct Widget {
|
|||
|
||||
impl Widget {
|
||||
// Construct
|
||||
pub fn new(pack_start: &Box, title_widget: Option<&Box>) -> Self {
|
||||
pub fn new(pack_start: &Box, title_widget: Option<&WindowTitle>) -> Self {
|
||||
let gobject = HeaderBar::builder().build();
|
||||
|
||||
gobject.pack_start(pack_start);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue