mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-03 01:55:27 +00:00
use action object
This commit is contained in:
parent
a6559a289f
commit
ae2bb93ea7
5 changed files with 38 additions and 20 deletions
|
|
@ -3,10 +3,13 @@ mod gemini;
|
|||
use gemini::Gemini;
|
||||
|
||||
use gtk::{
|
||||
gio::SimpleAction,
|
||||
glib::{GString, Uri},
|
||||
ScrolledWindow,
|
||||
};
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Meta {
|
||||
title: Option<GString>,
|
||||
}
|
||||
|
|
@ -18,9 +21,9 @@ pub struct Text {
|
|||
|
||||
impl Text {
|
||||
// Construct
|
||||
pub fn gemini(gemtext: &str, base: &Uri) -> Self {
|
||||
pub fn gemini(gemtext: &str, base: &Uri, action_open: Arc<SimpleAction>) -> Self {
|
||||
// Init components
|
||||
let gemini = Gemini::new(gemtext, base);
|
||||
let gemini = Gemini::new(gemtext, base, action_open);
|
||||
|
||||
// Init meta
|
||||
let meta = Meta {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue