drop Arc from SimpleAction #1

This commit is contained in:
yggverse 2024-10-27 12:50:36 +02:00
parent 08ad677ba4
commit 920721412e
40 changed files with 162 additions and 175 deletions

View file

@ -17,7 +17,7 @@ pub struct Control {
impl Control {
// Construct
pub fn new_arc(action_send: Arc<SimpleAction>) -> Arc<Self> {
pub fn new_arc(action_send: SimpleAction) -> Arc<Self> {
// Init components
let counter = Counter::new_arc();
let send = Send::new_arc(action_send);

View file

@ -11,7 +11,7 @@ pub struct Send {
impl Send {
// Construct
pub fn new_arc(action_send: Arc<SimpleAction>) -> Arc<Self> {
pub fn new_arc(action_send: SimpleAction) -> Arc<Self> {
// Init widget
let widget = Widget::new_arc(action_send);

View file

@ -11,7 +11,7 @@ pub struct Widget {
impl Widget {
// Construct
pub fn new_arc(action_send: Arc<SimpleAction>) -> Arc<Self> {
pub fn new_arc(action_send: SimpleAction) -> Arc<Self> {
// Init gobject
let gobject = Button::builder()
//.css_classes(["accent"])

View file

@ -11,7 +11,7 @@ pub struct Form {
impl Form {
// Construct
pub fn new_arc(action_update: Arc<SimpleAction>) -> Arc<Self> {
pub fn new_arc(action_update: SimpleAction) -> Arc<Self> {
// Init widget
let widget = Widget::new_arc(action_update);

View file

@ -14,7 +14,7 @@ pub struct Widget {
impl Widget {
// Construct
pub fn new_arc(action_update: Arc<SimpleAction>) -> Arc<Self> {
pub fn new_arc(action_update: SimpleAction) -> Arc<Self> {
// Init gobject
let gobject = TextView::builder()
.bottom_margin(MARGIN)