-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yggverse
committed
Jan 29, 2025
1 parent
fc8c967
commit a8008ad
Showing
4 changed files
with
36 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 2 additions & 21 deletions
23
src/app/browser/window/tab/item/page/navigation/request/identity.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
mod common; | ||
mod unsupported; | ||
|
||
use adw::AlertDialog; | ||
use common::Common; | ||
use unsupported::Unsupported; | ||
|
||
use super::Profile; | ||
use gtk::glib::Uri; | ||
use std::rc::Rc; | ||
|
||
/// Create new identity widget for Gemini protocol match given URI | ||
pub fn common( | ||
profile: &Rc<Profile>, | ||
request: &Uri, | ||
callback: &Rc<impl Fn(bool) + 'static>, | ||
) -> AlertDialog { | ||
AlertDialog::common(profile, request, callback) | ||
} | ||
|
||
/// Create new identity widget for unknown request | ||
pub fn unsupported() -> AlertDialog { | ||
AlertDialog::unsupported() | ||
} | ||
pub use common::Common; | ||
pub use unsupported::Unsupported; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters