mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
rename methods
This commit is contained in:
parent
0abc4e8932
commit
64143c9c50
2 changed files with 9 additions and 4 deletions
|
|
@ -82,7 +82,12 @@ impl Search {
|
|||
}
|
||||
|
||||
/// * currently supports [TextView](https://docs.gtk.org/gtk4/class.TextView.html) only
|
||||
pub fn update(&self, text_view: Option<TextView>) {
|
||||
pub fn set(&self, text_view: Option<TextView>) {
|
||||
self.subject.replace(text_view.map(Subject::new));
|
||||
}
|
||||
|
||||
pub fn unset(&self) {
|
||||
self.subject.replace(None);
|
||||
self.hide() // make sure widget not visible anymore
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue