mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
return reference to counter Label
This commit is contained in:
parent
c72da12c26
commit
97af26c44e
3 changed files with 8 additions and 6 deletions
|
|
@ -4,7 +4,7 @@ mod titan;
|
|||
mod widget;
|
||||
|
||||
use super::TabAction;
|
||||
use gtk::glib::Uri;
|
||||
use gtk::{glib::Uri, Label};
|
||||
use response::Response;
|
||||
use sensitive::Sensitive;
|
||||
use std::rc::Rc;
|
||||
|
|
@ -65,7 +65,7 @@ impl Input {
|
|||
));
|
||||
}
|
||||
|
||||
pub fn set_new_titan(&self, on_send: impl Fn(&[u8]) + 'static) {
|
||||
pub fn set_new_titan(&self, on_send: impl Fn(&[u8], &Label) + 'static) {
|
||||
self.widget
|
||||
.update(Some(&Titan::build(on_send).widget.g_box));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue