mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
begin identity dialog implementation
This commit is contained in:
parent
12b4d441ca
commit
14c31734fd
18 changed files with 439 additions and 72 deletions
19
src/app/browser/window/tab/item/identity.rs
Normal file
19
src/app/browser/window/tab/item/identity.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
mod gemini;
|
||||
mod unsupported;
|
||||
|
||||
use gemini::Gemini;
|
||||
use unsupported::Unsupported;
|
||||
|
||||
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(profile: Rc<Profile>, auth_uri: Uri) -> Gemini {
|
||||
Gemini::new(profile, auth_uri)
|
||||
}
|
||||
|
||||
/// Create new identity widget for unknown request
|
||||
pub fn new_unsupported() -> Unsupported {
|
||||
Unsupported::new()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue