mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
rename action
This commit is contained in:
parent
e732b3376c
commit
5769dcf8fe
10 changed files with 33 additions and 32 deletions
|
|
@ -17,7 +17,7 @@ pub struct Tab {
|
|||
// GTK
|
||||
widget: Notebook,
|
||||
// Keep action links in memory to not require them on every tab append
|
||||
action_tab_page_reload: Arc<SimpleAction>,
|
||||
action_tab_page_navigation_reload: Arc<SimpleAction>,
|
||||
action_update: Arc<SimpleAction>,
|
||||
// Dynamically allocated reference index
|
||||
labels: RefCell<HashMap<GString, Arc<Label>>>,
|
||||
|
|
@ -27,7 +27,7 @@ pub struct Tab {
|
|||
impl Tab {
|
||||
// Construct
|
||||
pub fn new(
|
||||
action_tab_page_reload: Arc<SimpleAction>,
|
||||
action_tab_page_navigation_reload: Arc<SimpleAction>,
|
||||
action_update: Arc<SimpleAction>,
|
||||
) -> Self {
|
||||
// Init widget
|
||||
|
|
@ -38,7 +38,7 @@ impl Tab {
|
|||
// GTK
|
||||
widget,
|
||||
// Define action links
|
||||
action_tab_page_reload,
|
||||
action_tab_page_navigation_reload,
|
||||
action_update,
|
||||
// Init empty HashMap index as no tabs appended yet
|
||||
labels: RefCell::new(HashMap::new()),
|
||||
|
|
@ -76,7 +76,7 @@ impl Tab {
|
|||
let page = Arc::new(Page::new(
|
||||
id.clone(),
|
||||
page_navigation_request_text.clone(),
|
||||
self.action_tab_page_reload.clone(),
|
||||
self.action_tab_page_navigation_reload.clone(),
|
||||
self.action_update.clone(),
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue