mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
add sensitive input status code support
This commit is contained in:
parent
a15738f391
commit
861046e162
8 changed files with 231 additions and 18 deletions
|
|
@ -1,8 +1,10 @@
|
|||
mod response;
|
||||
mod sensitive;
|
||||
mod widget;
|
||||
|
||||
use gtk::{gio::SimpleAction, glib::Uri};
|
||||
use response::Response;
|
||||
use sensitive::Sensitive;
|
||||
use widget::Widget;
|
||||
|
||||
use adw::Clamp;
|
||||
|
|
@ -34,17 +36,21 @@ impl Input {
|
|||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
is_sensitive_input: bool,
|
||||
) {
|
||||
self.widget.update(Some(
|
||||
&Response::new_arc(
|
||||
action_page_open,
|
||||
base,
|
||||
title,
|
||||
size_limit,
|
||||
is_sensitive_input,
|
||||
)
|
||||
.gobject(),
|
||||
&Response::new_arc(action_page_open, base, title, size_limit).gobject(),
|
||||
));
|
||||
}
|
||||
|
||||
pub fn set_new_sensitive(
|
||||
&self,
|
||||
action_page_open: Arc<SimpleAction>,
|
||||
base: Uri,
|
||||
title: Option<&str>,
|
||||
max_length: Option<i32>,
|
||||
) {
|
||||
self.widget.update(Some(
|
||||
&Sensitive::new_arc(action_page_open, base, title, max_length).gobject(),
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue