mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement response send
This commit is contained in:
parent
5d63f49987
commit
2f423c5d7e
6 changed files with 59 additions and 17 deletions
|
|
@ -2,7 +2,7 @@ mod default;
|
|||
mod widget;
|
||||
|
||||
use default::Default;
|
||||
use gtk::glib::Uri;
|
||||
use gtk::{gio::SimpleAction, glib::Uri};
|
||||
use widget::Widget;
|
||||
|
||||
use adw::Clamp;
|
||||
|
|
@ -23,9 +23,16 @@ impl Input {
|
|||
}
|
||||
|
||||
// Actions
|
||||
pub fn set_default(&self, base: Uri, title: Option<&str>, size_limit: Option<usize>) {
|
||||
self.widget
|
||||
.update(Some(&Default::new_arc(base, title, size_limit).gobject()));
|
||||
pub fn set_default(
|
||||
&self,
|
||||
action_page_open: Arc<SimpleAction>,
|
||||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
) {
|
||||
self.widget.update(Some(
|
||||
&Default::new_arc(action_page_open, base, title, size_limit).gobject(),
|
||||
));
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue