mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-06 03:25:27 +00:00
rename actions
This commit is contained in:
parent
2d08e8386d
commit
313122e5c3
26 changed files with 274 additions and 290 deletions
|
|
@ -10,18 +10,18 @@ use gtk::{
|
|||
use std::{cell::RefCell, sync::Arc};
|
||||
|
||||
pub struct Base {
|
||||
action_tab_page_navigation_base: SimpleAction,
|
||||
action_page_base: SimpleAction,
|
||||
uri: RefCell<Option<Uri>>,
|
||||
widget: Arc<Widget>,
|
||||
}
|
||||
|
||||
impl Base {
|
||||
// Construct
|
||||
pub fn new_arc(action_tab_page_navigation_base: SimpleAction) -> Arc<Self> {
|
||||
pub fn new_arc(action_page_base: SimpleAction) -> Arc<Self> {
|
||||
Arc::new(Self {
|
||||
action_tab_page_navigation_base: action_tab_page_navigation_base.clone(),
|
||||
action_page_base: action_page_base.clone(),
|
||||
uri: RefCell::new(None),
|
||||
widget: Widget::new_arc(action_tab_page_navigation_base),
|
||||
widget: Widget::new_arc(action_page_base),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ impl Base {
|
|||
self.uri.replace(uri);
|
||||
|
||||
// Update action status
|
||||
self.action_tab_page_navigation_base.set_enabled(status);
|
||||
self.action_page_base.set_enabled(status);
|
||||
|
||||
// Update child components
|
||||
self.widget.update(status);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue