mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
return Self implementation
This commit is contained in:
parent
bdad712690
commit
003486e3ed
22 changed files with 22 additions and 22 deletions
|
|
@ -5,7 +5,7 @@ pub struct Menu {
|
|||
}
|
||||
|
||||
impl Menu {
|
||||
pub fn new() -> Menu {
|
||||
pub fn new() -> Self {
|
||||
// Init model
|
||||
let model_tab = gio::Menu::new();
|
||||
model_tab.append(Some("New"), Some("win.tab_append"));
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ pub struct Tray {
|
|||
}
|
||||
|
||||
impl Tray {
|
||||
pub fn new() -> Tray {
|
||||
pub fn new() -> Self {
|
||||
let menu = Menu::new();
|
||||
let tab = Tab::new();
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ pub struct Tab {
|
|||
|
||||
impl Tab {
|
||||
// Construct
|
||||
pub fn new() -> Tab {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
widget: Button::builder()
|
||||
.action_name("win.tab_append")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue