mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
follow new construction protocol
This commit is contained in:
parent
c03bef9f15
commit
1db706aa5b
7 changed files with 25 additions and 30 deletions
|
|
@ -5,7 +5,6 @@ use subject::Subject;
|
|||
use tray::Tray;
|
||||
|
||||
use gtk::{glib::GString, HeaderBar};
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Header {
|
||||
widget: HeaderBar,
|
||||
|
|
@ -14,7 +13,7 @@ pub struct Header {
|
|||
|
||||
impl Header {
|
||||
// Construct
|
||||
pub fn new() -> Arc<Header> {
|
||||
pub fn new() -> Header {
|
||||
let tray = Tray::new();
|
||||
let subject = Subject::new();
|
||||
|
||||
|
|
@ -22,7 +21,7 @@ impl Header {
|
|||
widget.pack_start(tray.widget());
|
||||
widget.set_title_widget(Some(subject.widget()));
|
||||
|
||||
Arc::new(Self { widget, subject })
|
||||
Self { widget, subject }
|
||||
}
|
||||
|
||||
// Actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue