mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
drop Arc from SimpleAction #1
This commit is contained in:
parent
08ad677ba4
commit
920721412e
40 changed files with 162 additions and 175 deletions
|
|
@ -1,5 +1,3 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use adw::TabView;
|
||||
use gtk::{
|
||||
gio::{Icon, SimpleAction, SimpleActionGroup},
|
||||
|
|
@ -13,10 +11,10 @@ pub struct Widget {
|
|||
|
||||
impl Widget {
|
||||
// Construct
|
||||
pub fn new(action_tab_append: Arc<SimpleAction>) -> Self {
|
||||
pub fn new(action_tab_append: SimpleAction) -> Self {
|
||||
// Init additional action group
|
||||
let action_group = SimpleActionGroup::new();
|
||||
action_group.add_action(action_tab_append.as_ref());
|
||||
action_group.add_action(&action_tab_append);
|
||||
|
||||
// Init gobject
|
||||
let gobject = TabView::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue