mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
implement titan header options
This commit is contained in:
parent
6267691af2
commit
f6fb73c241
11 changed files with 289 additions and 25 deletions
|
|
@ -5,7 +5,7 @@ mod titan;
|
|||
use super::ItemAction;
|
||||
use adw::Clamp;
|
||||
use gtk::{
|
||||
glib::Uri,
|
||||
glib::{Bytes, Uri},
|
||||
prelude::{IsA, WidgetExt},
|
||||
Widget,
|
||||
};
|
||||
|
|
@ -74,7 +74,7 @@ impl Input {
|
|||
self.update(Some(>k::Box::sensitive(action, base, title, max_length)));
|
||||
}
|
||||
|
||||
pub fn set_new_titan(&self, on_send: impl Fn(&[u8], Box<dyn Fn()>) + 'static) {
|
||||
pub fn set_new_titan(&self, on_send: impl Fn(titan::Header, Bytes, Box<dyn Fn()>) + 'static) {
|
||||
self.update(Some(>k::Notebook::titan(on_send)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue