mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
23 lines
534 B
Rust
23 lines
534 B
Rust
mod gemini;
|
|
mod unsupported;
|
|
|
|
use gemini::Gemini;
|
|
use unsupported::Unsupported;
|
|
|
|
use super::{BrowserAction, Profile, WindowAction};
|
|
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()
|
|
}
|