mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
25 lines
631 B
Rust
25 lines
631 B
Rust
mod gemini;
|
|
mod unsupported;
|
|
|
|
use gemini::Gemini;
|
|
use unsupported::Unsupported;
|
|
|
|
use crate::app::browser::action::Action as BrowserAction;
|
|
use crate::app::browser::window::action::Action as WindowAction;
|
|
use crate::profile::Profile;
|
|
use gtk::glib::Uri;
|
|
use std::rc::Rc;
|
|
|
|
/// Create new identity widget for Gemini protocol match given URI
|
|
pub fn new_gemini(
|
|
action: (Rc<BrowserAction>, Rc<WindowAction>),
|
|
profile: Rc<Profile>,
|
|
auth_uri: Uri,
|
|
) -> Gemini {
|
|
Gemini::new(action, profile, auth_uri)
|
|
}
|
|
|
|
/// Create new identity widget for unknown request
|
|
pub fn new_unsupported() -> Unsupported {
|
|
Unsupported::new()
|
|
}
|