mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use global namespace
This commit is contained in:
parent
7ab1928cbc
commit
bfbe2a930d
1 changed files with 5 additions and 3 deletions
|
|
@ -1,4 +1,8 @@
|
||||||
use super::{Feature, Page};
|
use super::{Feature, Page};
|
||||||
|
use ggemini::client::{
|
||||||
|
connection::response::{data::Text, meta::Status},
|
||||||
|
Request,
|
||||||
|
};
|
||||||
use gtk::glib::{GString, UriFlags};
|
use gtk::glib::{GString, UriFlags};
|
||||||
use gtk::prelude::{EditableExt, FileExt};
|
use gtk::prelude::{EditableExt, FileExt};
|
||||||
use gtk::{
|
use gtk::{
|
||||||
|
|
@ -63,8 +67,6 @@ impl Gemini {
|
||||||
// Actions
|
// Actions
|
||||||
|
|
||||||
pub fn handle(&self, uri: Uri, feature: Feature, cancellable: Cancellable, is_history: bool) {
|
pub fn handle(&self, uri: Uri, feature: Feature, cancellable: Cancellable, is_history: bool) {
|
||||||
use ggemini::client::connection::response::{data::Text, meta::Status};
|
|
||||||
|
|
||||||
// Move focus out from navigation entry
|
// Move focus out from navigation entry
|
||||||
self.page
|
self.page
|
||||||
.browser_action
|
.browser_action
|
||||||
|
|
@ -101,7 +103,7 @@ impl Gemini {
|
||||||
}
|
}
|
||||||
|
|
||||||
self.client.request_async(
|
self.client.request_async(
|
||||||
ggemini::client::Request::gemini(uri.clone()),
|
Request::gemini(uri.clone()),
|
||||||
Priority::DEFAULT,
|
Priority::DEFAULT,
|
||||||
cancellable.clone(),
|
cancellable.clone(),
|
||||||
// Search for user certificate match request
|
// Search for user certificate match request
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue