mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
fix input redraw
This commit is contained in:
parent
ec86a9ecd0
commit
b8b5eee4fe
3 changed files with 11 additions and 23 deletions
|
|
@ -23,23 +23,19 @@ impl Input {
|
|||
}
|
||||
|
||||
// Actions
|
||||
pub fn show(&self) {
|
||||
self.widget.show()
|
||||
pub fn unset(&self) {
|
||||
self.widget.update(None);
|
||||
}
|
||||
|
||||
pub fn hide(&self) {
|
||||
self.widget.hide()
|
||||
}
|
||||
|
||||
// Variant switcher
|
||||
pub fn use_response(
|
||||
// Setters
|
||||
pub fn set_new_response(
|
||||
&self,
|
||||
action_page_open: Arc<SimpleAction>,
|
||||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
) {
|
||||
self.widget.set_child(Some(
|
||||
self.widget.update(Some(
|
||||
&Response::new_arc(action_page_open, base, title, size_limit).gobject(),
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue