|
|
@ -1,8 +1,7 @@ |
|
|
|
use adw::Clamp; |
|
|
|
|
|
|
|
use gtk::{ |
|
|
|
use gtk::{ |
|
|
|
gio::{SimpleAction, SimpleActionGroup}, |
|
|
|
gio::{SimpleAction, SimpleActionGroup}, |
|
|
|
glib::uuid_string_random, |
|
|
|
glib::uuid_string_random, |
|
|
|
prelude::{ActionMapExt, BoxExt, WidgetExt}, |
|
|
|
prelude::{ActionMapExt, BoxExt, IsA, WidgetExt}, |
|
|
|
Box, Orientation, |
|
|
|
Box, Orientation, |
|
|
|
}; |
|
|
|
}; |
|
|
|
use std::sync::Arc; |
|
|
|
use std::sync::Arc; |
|
|
@ -18,9 +17,9 @@ impl Widget { |
|
|
|
// Actions
|
|
|
|
// Actions
|
|
|
|
action_page_open: SimpleAction, |
|
|
|
action_page_open: SimpleAction, |
|
|
|
// Components
|
|
|
|
// Components
|
|
|
|
navigation: &Box, |
|
|
|
navigation: &impl IsA<gtk::Widget>, |
|
|
|
content: &Box, |
|
|
|
content: &impl IsA<gtk::Widget>, |
|
|
|
input: &Clamp, |
|
|
|
input: &impl IsA<gtk::Widget>, |
|
|
|
) -> Arc<Self> { |
|
|
|
) -> Arc<Self> { |
|
|
|
// Init additional action group
|
|
|
|
// Init additional action group
|
|
|
|
let action_group = SimpleActionGroup::new(); |
|
|
|
let action_group = SimpleActionGroup::new(); |
|
|
|