mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
replace features with adw 1.5 (support ubuntu 24.04 lts)
This commit is contained in:
parent
51431ca635
commit
297e54b2c1
5 changed files with 9 additions and 7 deletions
|
|
@ -14,7 +14,7 @@ pub struct Widget {
|
|||
|
||||
impl Widget {
|
||||
// Construct
|
||||
pub fn new(action_send: SimpleAction, title: Option<&str>, max_length: Option<i32>) -> Self {
|
||||
pub fn new(action_send: SimpleAction, title: Option<&str>, _max_length: Option<i32>) -> Self {
|
||||
// Init gobject
|
||||
let gobject = PasswordEntryRow::builder().show_apply_button(true).build();
|
||||
|
||||
|
|
@ -22,9 +22,10 @@ impl Widget {
|
|||
gobject.set_title(value);
|
||||
}
|
||||
|
||||
/* @TODO adw 1.6 / ubuntu 24.10+
|
||||
if let Some(value) = max_length {
|
||||
gobject.set_max_length(value);
|
||||
}
|
||||
} */
|
||||
|
||||
// Init events
|
||||
gobject.connect_apply(move |_| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue