remove extra getters, give names to gobjects

This commit is contained in:
yggverse 2024-12-09 21:26:47 +02:00
parent ccbc82d2f5
commit ff3f064534
12 changed files with 22 additions and 40 deletions

View file

@ -24,7 +24,7 @@ pub fn new_gobject(action: Rc<Action>) -> StatusPage {
.build();
// Init events
button.connect_clicked(move |_| action.ident().activate());
button.connect_clicked(move |_| action.ident.activate());
// Init status page
StatusPage::builder()

View file

@ -346,7 +346,7 @@ impl Reader {
return match uri.scheme().as_str() {
"gemini" => {
// Open new page in browser
actions.1.load().activate(Some(&uri.to_str()), true);
actions.1.load.activate(Some(&uri.to_str()), true);
}
// Scheme not supported, delegate
_ => UriLauncher::new(&uri.to_str()).launch(