mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
remove extra getters, give names to gobjects
This commit is contained in:
parent
ccbc82d2f5
commit
ff3f064534
12 changed files with 22 additions and 40 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ impl Response {
|
|||
action_send.connect_activate({
|
||||
let form = form.clone();
|
||||
move |_, _| {
|
||||
tab_action.load().activate(
|
||||
tab_action.load.activate(
|
||||
Some(&format!(
|
||||
"{}?{}",
|
||||
base.to_string_partial(UriHideFlags::QUERY),
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ impl Sensitive {
|
|||
action_send.connect_activate({
|
||||
let form = form.clone();
|
||||
move |_, _| {
|
||||
tab_action.load().activate(
|
||||
tab_action.load.activate(
|
||||
Some(&format!(
|
||||
"{}?{}",
|
||||
base.to_string_partial(UriHideFlags::QUERY),
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ impl Identity {
|
|||
// Actions
|
||||
pub fn update(&self, is_auth: bool, is_enabled: bool) {
|
||||
// Update action status
|
||||
self.action.ident().gobject().set_enabled(is_enabled);
|
||||
self.action.ident.simple_action.set_enabled(is_enabled);
|
||||
|
||||
// Update widget
|
||||
self.widget.update(is_auth, is_enabled)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ impl Widget {
|
|||
.build();
|
||||
|
||||
// Init events @TODO dialog window required
|
||||
gobject.connect_clicked(move |_| action.ident().activate());
|
||||
gobject.connect_clicked(move |_| action.ident.activate());
|
||||
|
||||
// Return activated `Self`
|
||||
Self { gobject }
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ impl Widget {
|
|||
EntryIconPosition::Primary => todo!(),
|
||||
EntryIconPosition::Secondary => {
|
||||
if go.is_some() {
|
||||
tab_action.load().activate(Some(&this.text()), true);
|
||||
tab_action.load.activate(Some(&this.text()), true);
|
||||
}
|
||||
}
|
||||
_ => println!("Undefined icon position"), // drop notice @TODO
|
||||
|
|
@ -82,7 +82,7 @@ impl Widget {
|
|||
});
|
||||
|
||||
entry.connect_activate(move |entry| {
|
||||
tab_action.load().activate(Some(&entry.text()), true);
|
||||
tab_action.load.activate(Some(&entry.text()), true);
|
||||
});
|
||||
|
||||
entry.connect_state_flags_changed({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue