mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
rename action
This commit is contained in:
parent
ae2bb93ea7
commit
7587e02aff
5 changed files with 14 additions and 14 deletions
|
|
@ -25,15 +25,15 @@ pub struct Content {
|
|||
// GTK
|
||||
widget: Box,
|
||||
// Actions
|
||||
action_open: Arc<SimpleAction>,
|
||||
action_page_open: Arc<SimpleAction>,
|
||||
}
|
||||
|
||||
impl Content {
|
||||
// Construct
|
||||
pub fn new(action_open: Arc<SimpleAction>) -> Self {
|
||||
pub fn new(action_page_open: Arc<SimpleAction>) -> Self {
|
||||
Self {
|
||||
widget: Box::builder().orientation(Orientation::Vertical).build(),
|
||||
action_open,
|
||||
action_page_open,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ impl Content {
|
|||
// Re-compose
|
||||
match mime {
|
||||
Mime::TextGemini => {
|
||||
let child = Text::gemini(data, base, self.action_open.clone());
|
||||
let child = Text::gemini(data, base, self.action_page_open.clone());
|
||||
|
||||
self.widget.append(child.widget());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue